mock-socket icon indicating copy to clipboard operation
mock-socket copied to clipboard

Support query paremeter arguments on URL

Open ahmadov opened this issue 6 years ago • 3 comments

I need to send some data from client to server with query parameter, but as I noticed client and server URL have to be the same. These extra data is differ for each client /?id=129&type=data, maybe another req parameter could be added to read the URL. somethink like that: wss.on('connection', (ws, req) => {});

ahmadov avatar Jul 02 '18 15:07 ahmadov

Hey - we also ran into this issue today (cc @viggyfresh). If this is the case, it would at least be helpful to have this documented somewhere! Took us quite a bit of debugging and digging to figure out why things weren't working. Thanks!

aligg avatar Jan 07 '19 22:01 aligg

This can be closed now that #271 is merged.

sechel avatar Jul 24 '19 09:07 sechel

I think this is still an issue. #271 only fixed NetworkBridge.prototype.attachWebSocket method, but my understanding of the code is that serverLookup needs a similar fix for the client to find the server.

tbuschto avatar Jan 10 '20 11:01 tbuschto