websocketpp connection failed with asio.system error code 10057

1.2k Views Asked by At

I use Websocket++ to connect to the deribit and bitmex exchange using websocket. I wrote a wssclient class and i think there's no error in my code because i successfully connect to the deribit with addresswss://www.deribit.com/ws/api/v2.

But somehow i couldn't connect to the bitmex with the addresswss://testnet.bitmex.com/realtime. I found these address from their offical doc, and the debug message is following:

[2020-02-17 00:50:35] [info] Error getting remote endpoint: asio.system:10057
[2020-02-17 00:50:35] [fail] WebSocket Connection Unknown - /realtime 0 websocketpp.transport:9 Timer Expired
[2020-02-17 00:50:35] [error] handle_connect error: Timer Expired

And if more info is needed, just say it.
Thanks in advance.

0

There are 0 best solutions below