Fork me on GitHub
#aleph
<
2016-03-18
>
moizsj09:03:40

@ztellman: Hey Zach. I am trying to port one of our services to Aleph. Its a web socket server that currently runs on http-kit. One of the things I require is the ability to add some custom http headers in the response during the websocket Upgrade process. Do you see a way I could do that?

moizsj09:03:03

To elaborate, I need to inspect the Sec-WebSocket-Extensions header value from the client req, and based on that add a response header during the upgrade process.

moizsj09:03:38

And similarly need to check the Sec-WebSocket-Protocol header in the request, and add the same back to the response if the protocol is what I expect