How to set the “Sec-WebSocket-Protocol” header in Phoenix?

Check the subprotocols section of endpoint websocket docs:
https://hexdocs.pm/phoenix/Phoenix.Endpoint.html#socket/3-websocket-configuration

5 Likes