WebSockets.

How to test a WebSocket connection in a browser

This article documents a simple and neat way to establish and test a WebSocket connection, using just vanilla JavaScript and your favorite browser’s developer tools. Quick and easy – no external tools or libraries required! In the sample I’ll show just a few paragraphs below, we’ll instantiate a websocket connection, hook a listener to the onmessage event and the last line sends a simple payload down the WebSocket pipe, just to see if something happens. If there IS a response, we’ll be logging it in…Continue reading How to test a WebSocket connection in a browser