Pass opCode around, add Loop::setPostHandler

This commit is contained in:
Alex Hultman
2018-11-04 10:44:11 +01:00
parent 0d09d1db02
commit 894609e638
6 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ private:
WebSocketContextData<SSL> *webSocketContextData = (WebSocketContextData<SSL> *) us_socket_context_ext(us_socket_get_context((us_socket *) s));
// emit message
webSocketContextData->messageHandler((WebSocket<SSL, true> *) s, std::string_view(data, length));
webSocketContextData->messageHandler((WebSocket<SSL, true> *) s, std::string_view(data, length), (uWS::OpCode) opCode);
// the only thing here to check is probably closed