dhbaird / easywsclient

A short and sweet WebSocket client for C++
MIT License
741 stars 205 forks source link

Could not parse WebSocket url. (Url workable in python/web browser) #63

Open williambug217 opened 6 years ago

williambug217 commented 6 years ago

ERROR: Could not parse WebSocket url: wss://api.gemini.com/xxx/xxx

This url is from API of a third party, it has been tested scripting languages and web brower(chrome)

It looks like in easywsclient::WebSocket::pointer from_url, it only tried to parse ws:// urls with a xxx:xxx:xxx:xxx format ip? Is it intended?

fa7eme commented 2 years ago

I got the same error, I changed the code of easywcclient.cpp to resolve it. search "parse", there are some if/else statements above it with only check urls starting with 'ws'. you can change it to 'wss' manually.

graysuit commented 1 year ago

Anyone in future, it seems it doesn't supports SSL (means wss:// links). Try for ws:// links instead. or use: IXWebSocket