Emit drain event, add comments, etc
This commit is contained in:
@@ -29,9 +29,9 @@ template <bool, bool> struct WebSocket;
|
||||
template <bool SSL>
|
||||
struct WebSocketContextData {
|
||||
/* The callbacks for this context */
|
||||
std::function<void(WebSocket<SSL, true> *, std::string_view, uWS::OpCode)> messageHandler;
|
||||
std::function<void(uWS::WebSocket<SSL, true> *)> drainHandler;
|
||||
std::function<void(uWS::WebSocket<SSL, true> *, int, std::string_view)> closeHandler;
|
||||
std::function<void(WebSocket<SSL, true> *, std::string_view, uWS::OpCode)> messageHandler = nullptr;
|
||||
std::function<void(uWS::WebSocket<SSL, true> *)> drainHandler = nullptr;
|
||||
std::function<void(uWS::WebSocket<SSL, true> *, int, std::string_view)> closeHandler = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user