For #39, fixed setOnMessageCallback() in README.

This commit is contained in:
dhruvkakadiya 2019-04-21 14:56:02 -07:00
parent 210d19c8a0
commit 1ef38afcf7

View File

@ -35,8 +35,8 @@ webSocket.setOnMessageCallback(
const std::string& str, const std::string& str,
size_t wireSize, size_t wireSize,
const ix::WebSocketErrorInfo& error, const ix::WebSocketErrorInfo& error,
const ix::WebSocketCloseInfo& closeInfo, const ix::WebSocketOpenInfo& openInfo,
const ix::WebSocketHttpHeaders& headers) const ix::WebSocketCloseInfo& closeInfo)
{ {
if (messageType == ix::WebSocket_MessageType_Message) if (messageType == ix::WebSocket_MessageType_Message)
{ {
@ -292,8 +292,8 @@ webSocket.setOnMessageCallback(
const std::string& str, const std::string& str,
size_t wireSize, size_t wireSize,
const ix::WebSocketErrorInfo& error, const ix::WebSocketErrorInfo& error,
const ix::WebSocketCloseInfo& closeInfo, const ix::WebSocketOpenInfo& openInfo,
const ix::WebSocketHttpHeaders& headers) const ix::WebSocketCloseInfo& closeInfo)
{ {
if (messageType == ix::WebSocket_MessageType_Open) if (messageType == ix::WebSocket_MessageType_Open)
{ {
@ -329,8 +329,8 @@ webSocket.setOnMessageCallback(
const std::string& str, const std::string& str,
size_t wireSize, size_t wireSize,
const ix::WebSocketErrorInfo& error, const ix::WebSocketErrorInfo& error,
const ix::WebSocketCloseInfo& closeInfo, const ix::WebSocketOpenInfo& openInfo,
const ix::WebSocketHttpHeaders& headers) const ix::WebSocketCloseInfo& closeInfo)
{ {
if (messageType == ix::WebSocket_MessageType_Error) if (messageType == ix::WebSocket_MessageType_Error)
{ {
@ -369,8 +369,8 @@ webSocket.setOnMessageCallback(
const std::string& str, const std::string& str,
size_t wireSize, size_t wireSize,
const ix::WebSocketErrorInfo& error, const ix::WebSocketErrorInfo& error,
const ix::WebSocketCloseInfo& closeInfo, const ix::WebSocketOpenInfo& openInfo,
const ix::WebSocketHttpHeaders& headers) const ix::WebSocketCloseInfo& closeInfo)
{ {
if (messageType == ix::WebSocket_MessageType_Ping || if (messageType == ix::WebSocket_MessageType_Ping ||
messageType == ix::WebSocket_MessageType_Pong) messageType == ix::WebSocket_MessageType_Pong)