ryo-ma/deno-websocket

You should pass the url into the connection event handler

crankywilson opened this issue · 1 comments

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...

This looks like it's good to close now