diff --git a/include/oatpp-authkit/ws/Hub.hpp b/include/oatpp-authkit/ws/Hub.hpp index f867f16..ddfd49c 100644 --- a/include/oatpp-authkit/ws/Hub.hpp +++ b/include/oatpp-authkit/ws/Hub.hpp @@ -66,10 +66,12 @@ struct SocketInfo { * @endcode */ struct HubHousekeeper; // forward-declare for friend (#439) +class Listener; // forward-declare for friend (Listener calls Hub::sharedMapper) class Hub : public oatpp::websocket::ConnectionHandler::SocketInstanceListener { friend struct HubHousekeeper; + friend class Listener; public: using WebSocket = oatpp::websocket::WebSocket;