elixir-socket icon indicating copy to clipboard operation
elixir-socket copied to clipboard

Error to connect ssl sockets with a CRLF json protocol

Open klevison opened this issue 5 years ago • 0 comments

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.

klevison avatar Apr 27 '20 01:04 klevison