WebSocket - (void)didClose method not called when closed in Chrome #30

Open
schmitzware opened this Issue Jun 1, 2012 · 1 comment

Projects

None yet

2 participants

@schmitzware

The easiest way to show this is to open up the SimpleWebSocketServer
Open Web/WebSocketTest2.js and change line 14 from:

ws.onmessage = function(evt) { alert("received: " + evt.data); };

to:

ws.onmessage = function(evt) { alert("received: " + evt.data); ws.close(); };

Running in Firefox/Safari you will see "MyWebSocket[0x7fbb9ad003a0]: didClose" in the console output.

When running in Chrome this method is never call.

@jinthagerman

This doesn't seem to working in Safari anymore either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment