From 1ef38afcf71085e828dc4e8476137096530bbfa2 Mon Sep 17 00:00:00 2001 From: dhruvkakadiya Date: Sun, 21 Apr 2019 14:56:02 -0700 Subject: [PATCH] For #39, fixed setOnMessageCallback() in README. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c3ad5bbb..2f527a67 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ webSocket.setOnMessageCallback( const std::string& str, size_t wireSize, const ix::WebSocketErrorInfo& error, - const ix::WebSocketCloseInfo& closeInfo, - const ix::WebSocketHttpHeaders& headers) + const ix::WebSocketOpenInfo& openInfo, + const ix::WebSocketCloseInfo& closeInfo) { if (messageType == ix::WebSocket_MessageType_Message) { @@ -292,8 +292,8 @@ webSocket.setOnMessageCallback( const std::string& str, size_t wireSize, const ix::WebSocketErrorInfo& error, - const ix::WebSocketCloseInfo& closeInfo, - const ix::WebSocketHttpHeaders& headers) + const ix::WebSocketOpenInfo& openInfo, + const ix::WebSocketCloseInfo& closeInfo) { if (messageType == ix::WebSocket_MessageType_Open) { @@ -329,8 +329,8 @@ webSocket.setOnMessageCallback( const std::string& str, size_t wireSize, const ix::WebSocketErrorInfo& error, - const ix::WebSocketCloseInfo& closeInfo, - const ix::WebSocketHttpHeaders& headers) + const ix::WebSocketOpenInfo& openInfo, + const ix::WebSocketCloseInfo& closeInfo) { if (messageType == ix::WebSocket_MessageType_Error) { @@ -369,8 +369,8 @@ webSocket.setOnMessageCallback( const std::string& str, size_t wireSize, const ix::WebSocketErrorInfo& error, - const ix::WebSocketCloseInfo& closeInfo, - const ix::WebSocketHttpHeaders& headers) + const ix::WebSocketOpenInfo& openInfo, + const ix::WebSocketCloseInfo& closeInfo) { if (messageType == ix::WebSocket_MessageType_Ping || messageType == ix::WebSocket_MessageType_Pong)