meh / elixir-socket

Socket wrapping for Elixir.
691 stars 119 forks source link

Error to connect ssl sockets with a CRLF json protocol #98

Open klevison opened 4 years ago

klevison commented 4 years ago

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.