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.
2 parents 035ad01 + c96f72c commit 28d719aCopy full SHA for 28d719a
src/sio_socket.cpp
@@ -265,8 +265,10 @@ namespace sio
265
void socket::impl::send_connect()
266
{
267
NULL_GUARD(m_client);
268
- packet p(packet::type_connect,m_nsp);
269
- m_client->send(p);
+ if(m_nsp!="/") {
+ packet p(packet::type_connect,m_nsp);
270
+ m_client->send(p);
271
+ }
272
m_connection_timer.reset(new boost::asio::deadline_timer(m_client->get_io_service()));
273
boost::system::error_code ec;
274
m_connection_timer->expires_from_now(boost::posix_time::milliseconds(20000), ec);
0 commit comments