mirror of
https://github.com/amark/gun.git
synced 2026-03-06 09:01:36 +00:00
For consideration (this can also be overloaded in stock gun)
The current ws.js code does not allow providing an external websocket while initializing Gun. This one line patch makes it possible:
```
var myWS= new WebSocket.Server({ noServer: true, path: pathname});
var myGun = new Gun({
ws: { noServer: true, path: '/mygun', web: myWS },
web: myWS
});
```
3.0 KiB
3.0 KiB