Skip to content

Commit

Permalink
Fix a typo in emit binary example
Browse files Browse the repository at this point in the history
  • Loading branch information
melode11 committed May 22, 2015
1 parent e105fac commit cf5ec9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit cf5ec9e

Please sign in to comment.