Skip to content

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

@klevison

Description

@klevison

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions