You should pass the url into the connection event handler
crankywilson opened this issue · 1 comments
crankywilson commented
I modified connect() in WebSocketServer so that it does this:
this.emit("connection", ws, req.url);
(added the extra param)
this is standard behavior in other webscoket (server) implementations and this data seems completely unreachable in the user code otherwise...
UserJHansen commented
This looks like it's good to close now