elixir-socket
elixir-socket copied to clipboard
Error to connect ssl sockets with a CRLF json protocol
I'm trying to connect to a socket (ssl)
Socket.Web.connect! "stream-api.betfair.com", secure: true
But I'm facing with this error:
** (MatchError) no match of right hand side value: {:http_error, "{\"op\":\"connection\",\"connectionId\":\"203-270420013200-944388\"}\r\n"}
(socket 0.3.13) lib/socket/web.ex:251: Socket.Web.connect!/3
But its not an error. The server accepts my connection, but elixir-socket returns an error.