Today, I released the first version of iocat.
iocat
can be used to debug your websocket and socket.io applications from your command-line interface.
It’s an equivalent of netcat, and can act as client or server.
Sources: https://github.com/moul/iocat