update readme.md

This commit is contained in:
Benjamin Sergeant 2018-10-27 11:46:11 -07:00
parent 912d926260
commit 5b333f91f6

@ -131,11 +131,11 @@ webSocket.setOnMessageCallback(
{ {
if (messageType == ix::WebSocket_MessageType_Open) if (messageType == ix::WebSocket_MessageType_Open)
{ {
puts("send greetings"); std::cout << "send greetings" << std::endl;
} }
else if (messageType == ix::WebSocket_MessageType_Close) else if (messageType == ix::WebSocket_MessageType_Close)
{ {
puts("disconnected"); std::cout << "disconnected" << std::endl;
// The server can send an explicit code and reason for closing. // The server can send an explicit code and reason for closing.
// This data can be accessed through the closeInfo object. // This data can be accessed through the closeInfo object.