mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-09 19:54:46 +00:00
Fix a typo in emit binary example
This commit is contained in:
parent
e105face52
commit
cf5ec9e33b
@ -58,7 +58,7 @@ h.socket->emit("login");
|
||||
h.socket()->emit("add user", username);
|
||||
//emit binary
|
||||
char buf[100];
|
||||
h.socket()->emit("add user", std::make_shared<std::string>(&buf,100));
|
||||
h.socket()->emit("add user", std::make_shared<std::string>(buf,100));
|
||||
//emit message object with lambda ack handler
|
||||
h.socket()->emit("add user", string_message::create(username), [&](message::ptr const& msg)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user