We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973eeaa commit fb8efd9Copy full SHA for fb8efd9
src/internal/sio_client_impl.cpp
@@ -222,7 +222,12 @@ namespace sio
222
} else {
223
ss<<uo.get_host();
224
}
225
- ss<<":"<<uo.get_port()<<"/socket.io/?EIO=3&transport=websocket";
+
226
+ // If a resource path was included in the URI, use that, otherwise
227
+ // use the default /socket.io/.
228
+ const std::string path(uo.get_resource() == "/" ? "/socket.io/" : uo.get_resource());
229
230
+ ss<<":"<<uo.get_port()<<path<<"?EIO=3&transport=websocket";
231
if(m_sid.size()>0){
232
ss<<"&sid="<<m_sid;
233
0 commit comments