socket.io-client-cpp
socket.io-client-cpp copied to clipboard
C++11 implementation of Socket.IO client
@melode11 The demo app only seems to work when SIO_TLS is **not enabled**, on OS X, I receive the errors below. I've tried using both Boost 1.60.0 and 1.55.0 against...
So I'm trying to connect to my socket.io server from a injectable dll, it connects to server as I see in console, but when I'm trying to emit anything, it...
Hello Is it possible to use SSL certificate ? Do you have some snippets code? my socketio server needs authenticated client and reject others Thanks !
Hello! I'll tell you a prehistory, I'm new to C++ and mostly work on the web with the front and backend, I know how to work with Docker and build...
Hi, this is not an issue, but a query on how to use the SDK. I have seen that in other language implementations, once can pass identifiers from client, maybe...
Hi, I am trying to make a progress update mechanism, i.e. a progress bar that is based on successive emits from socket.io-cpp to the server. For some unknown reason, all...
void socket::impl::close() { NULL_GUARD(m_client); if(m_connected) { packet p(packet::type_disconnect,m_nsp); send_packet(p); if(!m_connection_timer) { m_connection_timer.reset(new asio::steady_timer(m_client->get_io_service())); } asio::error_code ec; m_connection_timer->expires_from_now(std::chrono::milliseconds(3000), ec); //here is 3000 ms m_connection_timer->async_wait(std::bind(&socket::impl::on_close, this)); } } I want to modify...
I tried to connect locally but got this error: ``` OpenGL Version: 3.1.0 - Build 9.17.10.4459 [2023-01-05 13:27:08] [connect] Successful connection [2023-01-05 13:27:08] [connect] WebSocket Connection 127.0.0.1:3000 v-2 "WebSocket++/0.8.2" /socket.io/?EIO=3&transport=websocket&t=1672910828...
Client: ``` h.socket()->on("getGamesAndPlayers", sio::socket::event_listener_aux([&](string const& name, message::ptr const& data, bool isAck,message::list &ack_resp) { if (isAck) { ack_resp.push(string_message::create("economics")); } })); ``` Server: ``` client.on("getGamesAndPlayers", (from) => { server.to("Host Bots").emit("getGamesAndPlayers", from, (response)...
For some reason, I have to make socketio work on Windows XP. Is there anyone knows how to build socketio with static library for Windows XP? Any help is appreciated.