websockets / wscat

WebSocket cat
MIT License
2.25k stars 223 forks source link

# in address #148

Closed f33r0 closed 10 months ago

f33r0 commented 11 months ago

Hello everyone. What I should do, if address contains # ? wscat gives an error: SyntaxError: The URL contains a fragment identifier

lpinca commented 10 months ago

You can use the query arguments but the hash is not allowed.

new WebSocket('wss://websocket-echo.com/?foo=bar') // Works.
new WebSocket('wss://websocket-echo.com/?foo=bar#baz') // Throws an error.