You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
In wamp.rt, handleProtocol signature's second argument is a cb callback function which does not match WebSocket.Server options's handleProtocol's request causing problems. Perhaps this was left over from some other non-ws early web socket implementation that is non-compatible?
The
Routerconstructor'soptions.handleProtocolshandling seems like it is meant to either ...options.handleProtocols, if supplied, or"wamp.2.json"subprotocol, orhandleProtocolsat all to WebSocket.Server ifoptions.disableProtocolCheckis true.None of these seem to currently work. This can be seen by running
node examples/basicand Autobahn's client at https://github.com/crossbario/autobahn-js code testing basic.js.In wamp.rt,
handleProtocolsignature's second argument is acbcallback function which does not match WebSocket.Server options'shandleProtocol's requestcausing problems. Perhaps this was left over from some other non-wsearly web socket implementation that is non-compatible?A fix will appear in https://github.com/kenklin/wamp.rt