-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does websocket of this lib support windows 7 #635
Comments
Yes. |
ok , and is there any errors on windows 10 as I tried a simple c++ websocket lib it was good although it hadn't a message handler but I didn't need this feature |
C++ REST SDK enables implementing websocket clients, see https://github.com/Microsoft/cpprestsdk/wiki/Web-Socket. There's an open issue to add support for implementing websocket server, see #358. The current C++ REST SDK cross-platform Web Socket code is built on top of the Websocket++ open source library. |
I tried to use it after building statically but I still nedd a dll file and the program crashes when I try to connect to the server I'm trying to connect to chrome remote debugger on port 4789 so I launch chrome with the needed args then send curl request to localhost:port/json to get ws urls of the pages to connect to them for example I got this : // I set it string as I recieved and parsed the response from curl as std::string
the program crashes on connecting and the debugger take me to ppltasks.h line 750 which is : I want to get rid of this crash and build full statically without any dll |
I put it in try catch statement and I got this : UTF-16 string is missing low surrogate |
That exception comes from UTF-16 to UTF-8 conversion and indicates invalid UTF-16 data. I suggest you put a breakpoint at https://github.com/Microsoft/cpprestsdk/blob/v2.10.1/Release/src/utilities/asyncrt_utils.cpp#L429 and debug where the invalid data is coming from during the connection process. |
By the way, rather than using websocket_client client;
client.connect(U("ws://...")); |
Does websocket of this lib support windows 7 as very many users still use windows 7
The text was updated successfully, but these errors were encountered: