How do I set Sec-WebSocket-Protocol to the response header in phoenix websocket?
I have tried Plugs to add the header field to the conn
object but it seems like somewhere along the way it has been dropped.
The other option I tried was to create a custom websocket by importing Phoenix.Transport.Websocket
but ended up with no success.