Update wire.js

This commit is contained in:
Bradley Matusiak 2023-11-23 19:24:34 -05:00 committed by GitHub
parent 22a23806cf
commit fd19a00d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,7 @@ Gun.on('opt', function (root) {
ws.path = ws.path || '/gun'; ws.path = ws.path || '/gun';
// if we DO need an HTTP server, then choose ws specific one or GUN default one. // if we DO need an HTTP server, then choose ws specific one or GUN default one.
if (!opt.web || ws.noServer) { if (!opt.web || ws.noServer) {
this.to.next(root);
return;// no server no sockets return;// no server no sockets
} }
ws.noServer = true;//workaround for ws.path ws.noServer = true;//workaround for ws.path