Canisocket is a project mainly written in JavaScript, it's free.
Beyond ('WebSocket' in window). Quick Web Socket support test with a round-trip to the server.
Can I Socket
"Yes you can!"
Tests whether a browser supports Web Sockets.
npm install node-static websocket-server
MIT