dhbaird / easywsclient

A short and sweet WebSocket client for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error getaddrinfo: E on connecting

developernew123 opened this issue · comments

I get this error on connecting to firefox websocket remote debugger i launch firefox with :
firefox -start-debugger-server ws:6047
the I tried to connect to ws://localhost:6047 using wscat from npm and it connected successfully but when trying to connect using easywsclient with this code :
auto ws = WebSocket::from_url_no_mask("ws://localhost:6047");
I got this in the terminal :
easywsclient: connecting: host=localhost port=6047 path=/
getaddrinfo: E
ERROR: Got bad status connecting to ws://localhost:6047:

same issue

@developernew123 @Bananik007 guys have you managed to solve this?

If anyone needs it, here is the solution: #13 (comment)

Cheers!