Are query parameters supported? #45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The WebSocket specification states that this is a valid websocket URI:
ws://myserver.com/path?param=1However I am unsure if nodejs-websocket supports access to the URI parameters.
Can anyone tell me if this is supported (and if yes, how to use it)?
Thanks
The
Connectionis passed as parameter to the "connection" listener, so you could do:But as far as I looked at the source, you would have to process the string yourself, there are no utility methods in the library itself.
You could use the
querystringmodule of node's to parse the parameters after splitting the path on?