Skip to content Skip to sidebar Skip to footer

Close Does Not Seem To Work With Websocket

I have this simple javascript code : window.ws = new WebSocket('ws://127.0.0.1:8000/'); ws.onopen = function() { ws.send('hello'); } And a server in Ruby like this : require

Solution 1:

I'm posting this answer since the issue was discovered to be related to the usage of 'Docker' and a new question was posted relating to the actual issue.

This answer should (hopefully) correctly mark this question as no longer in need of attention, so that the community can focus on unanswered questions.

See the comments to the question for further details.

Post a Comment for "Close Does Not Seem To Work With Websocket"