meh / elixir-socket

Socket wrapping for Elixir.
691 stars 119 forks source link

sub-protocol #75

Closed mirkobrankovic closed 7 years ago

mirkobrankovic commented 7 years ago

I can't seem to find sub-protocol support based on: https://tools.ietf.org/html/rfc6455#page-12

Is this supported or not?

Thanks, mirko

mirkobrankovic commented 7 years ago

Oh sorry, I was blind, but now i can see: if(protocols, do: ["Sec-WebSocket-Protocol: #{Enum.join protocols, ", "}", "\r\n"], else: []),