Make getUserData type safe
This commit is contained in:
+3
-3
@@ -29,9 +29,9 @@ namespace uWS {
|
||||
|
||||
struct WebSocketData : AsyncSocketData<false>, WebSocketState<true> {
|
||||
/* This guy has a lot of friends - why? */
|
||||
template <bool, bool> friend struct WebSocketContext;
|
||||
template <bool> friend struct WebSocketContextData;
|
||||
template <bool, bool> friend struct WebSocket;
|
||||
template <bool, bool, typename> friend struct WebSocketContext;
|
||||
template <bool, typename> friend struct WebSocketContextData;
|
||||
template <bool, bool, typename> friend struct WebSocket;
|
||||
template <bool> friend struct HttpContext;
|
||||
private:
|
||||
std::string fragmentBuffer;
|
||||
|
||||
Reference in New Issue
Block a user