Looks like it's easy to add custom HTTP headers to your websocket client with any HTTP header client which supports this, but I can't find how to do it with the JSON API.
Yet, it seems that there should be support these headers in the spec.
Anyone has a clue on how to achieve it?
var ws = new
var ws = new WebSocket("ws://example.com/path", "protocol-name");