【发布时间】:2020-08-10 12:16:35
【问题描述】:
我正在尝试使用 https://github.com/meh/elixir-socket 连接到套接字 (ssl)
Socket.Web.connect! "stream-api.betfair.com", secure: true
但我遇到了这个错误:
** (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
但这不是错误。服务器接受我的连接,但 elixir-socket 返回错误。那么有什么问题呢?
【问题讨论】: