IXWebSocket
IXWebSocket copied to clipboard
websocket and http client and server library, with TLS support and very few dependencies
Hi, Just curious to know why WebSocketServer::OnConnectionCallback takes a weak_ptr as its first argument and not a shared_ptr? I don't often use weak_ptr so I'm not sure what I should...
Hello everyone, I cannot seem to link against IXWebsocket. Been trying for two weeks now. Any help would be greatly appreciated. My host machine is MacOS and the current CMakeLists...
Hello, We are using IXWebSocket for our client application. We have IXWebSocket included in our C++ projects locally, not using `vcpkg`. We had issues in the past and trying to...
For now I haven't found a way to match a `Websocket&` with the `std::set`, from the client message callback `void(std::shared_ptr, WebSocket&, const WebSocketMessagePtr&)`, and get clients `std::set getClients()` respectively. I...
https://github.com/machinezone/IXWebSocket/blob/679ce519dd0d6d3919990abdee7109a5eeb99aa0/ixwebsocket/IXWebSocketTransport.cpp#L1067 https://github.com/machinezone/IXWebSocket/blob/679ce519dd0d6d3919990abdee7109a5eeb99aa0/ixwebsocket/IXWebSocketTransport.cpp#L691 The way the code is using std::vector for the receive buffer with data being added at the end and removed from the front creates a time complexity bug....
For now a port and host has to be decided at construction time of `ix::WebSocketServer` and `ix::HttpServer`. It will be great if the `bind`ing can be delayed. Possible usage: ```...
# description Using _msg->type == ix::WebSocketMessageType::Error_ and _std::string reason = msg->errorInfo.reason_ adds an unwanted newline. See my log ``` 2023-05-05 14:17:51 2023-05-05 12:17:51.300122|INFO |AppServer | |Websocket connection to ws://example.com/ws closed...
Hello, thank you for this very good library. But I have an issue. I have server and several clients. A client is connected. After a minute I disconnect the client...
I have a websocket server which mostly from IXWebSocketServerTest.cpp compiled with g++ : g++ --std=c++14 -O2 -I./include/ websocketserver.cpp -lixwebsocket -pthread -lz -lssl -lcrypto -o websocketserver.exe it works fine , still...
Is there some documentation on the threading model for IXWebSocket? I had assumed that my message handler registered via `ix::WebSocket::setOnMessageCallback()` would only get invoked from a background thread, but my...