For #39, fixed setOnMessageCallback() in README.
This commit is contained in:
		
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user