socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

Help please send ask

Open TemKaSD opened this issue 3 years ago • 0 comments

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) => {
      console.log("Answer: " + response); // "got it"
    });
  });

Answer: Error: operation has timed out OR NULL

TemKaSD avatar Dec 17 '22 04:12 TemKaSD