You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And no matter what I tried, the client in whatever language either freezed at readyState 0 (connection CLOSED) or it couldn't connect - from server side I get Couldn't find WebSocket endpoint for '/pin_handler'
However everything's fine when I add /
I tried to define a WebSocket endpoint like this:
server.addWebSocketHandler("pin_handler", std::make_shared<ChatHandler>());
And no matter what I tried, the client in whatever language either freezed at readyState 0 (connection CLOSED) or it couldn't connect - from server side I get
Couldn't find WebSocket endpoint for '/pin_handler'
However everything's fine when I add
/
server.addWebSocketHandler("/pin_handler", std::make_shared<ChatHandler>());
So my suggestion is to check in
Server::addWebSocketHandler
if edpoint string starts with/
and either add it or at least warn about it.The text was updated successfully, but these errors were encountered: