I have set up a WebSocket server using http-kit that should accept web socket connections. It is the basic example shown in the http-kit documentation.
http-kit's client does not support WebSocket yet(I can't think of a good API for it). Aleph is a good option for this kind of use case. Another option is http.async.client, I've used it in http-kit's server's websocket unit test: here