Fix a typo in emit binary example

This commit is contained in:
melode11 2015-05-22 12:10:41 +08:00
parent e105face52
commit cf5ec9e33b

View File

@ -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)
{