yes ,just client ,the peer how connect?
so ,if just have localstorage ~gun not have discovery mechanism? i Thought have it~
How to connect to what? A remote server? Give the constructor the URL? To nothing? No URL, it'll use localStorage. Could you clarify your question?
You should be able to do straight peer to peer with Electron and Gun, but you would need a discovery mechanism of some kind, a way to handle NAT traversal, and possibly authentication, if you want the connection process to be automatic.
Carlos Killpack
Hero Punch
Infinite Automata Network
On Aug 22, 2016, 10:04 -0600, Mark Nadal [email protected], wrote:
How to connect to what? A remote server? Give the constructor the URL? To nothing? No URL, it'll use localStorage. Could you clarify your question?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (https://github.com/amark/gun/issues/210#issuecomment-241462129), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAF1i0duNZJ2cBp4tqSWooeIXM1Ra_bPks5qich-gaJpZM4JpqE0).
i use nw ( former nodewebkit) but i guess it's the same principle...In the nw app, i run the Gun server in the node context, and use the browser part of gun in the frontend. I have a simple version on github.
https://github.com/Stefdv/Gun-Server-CMS-App
Most helpful comment
i use nw ( former nodewebkit) but i guess it's the same principle...In the nw app, i run the Gun server in the node context, and use the browser part of gun in the frontend. I have a simple version on github.
https://github.com/Stefdv/Gun-Server-CMS-App