diff --git a/README.md b/README.md index fd252f78..24536bf7 100755 --- a/README.md +++ b/README.md @@ -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(&buf,100)); +h.socket()->emit("add user", std::make_shared(buf,100)); //emit message object with lambda ack handler h.socket()->emit("add user", string_message::create(username), [&](message::ptr const& msg) {