How to achieve a non-blocking WebSocket message listener?

I have updated my original example. Read more here: Websockets HTML5

3 Likes