diff --git a/lib/wire.js b/lib/wire.js index 90e2f13d..64abf62a 100644 --- a/lib/wire.js +++ b/lib/wire.js @@ -63,6 +63,7 @@ Gun.on('opt', function (root) { ws.path = ws.path || '/gun'; // if we DO need an HTTP server, then choose ws specific one or GUN default one. if (!opt.web || ws.noServer) { + this.to.next(root); return;// no server no sockets } ws.noServer = true;//workaround for ws.path