Skip to content

Commit cf5ec9e

Browse files
committed
Fix a typo in emit binary example
1 parent e105fac commit cf5ec9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ h.socket->emit("login");
5858
h.socket()->emit("add user", username);
5959
//emit binary
6060
char buf[100];
61-
h.socket()->emit("add user", std::make_shared<std::string>(&buf,100));
61+
h.socket()->emit("add user", std::make_shared<std::string>(buf,100));
6262
//emit message object with lambda ack handler
6363
h.socket()->emit("add user", string_message::create(username), [&](message::ptr const& msg)
6464
{

0 commit comments

Comments
 (0)