Adding websocket server code, so that a gateway is no longer required. Still kind of untested. Requires websocketpp.
This commit is contained in:
@@ -281,7 +281,9 @@ SessionManager::Clear()
|
||||
|
||||
boost::system::error_code ec;
|
||||
while (i != end) {
|
||||
i->second->GetAsioSocket()->close(ec);
|
||||
// Close all raw handles.
|
||||
i->second->CloseSocketHandle();
|
||||
i->second->CloseWebSocketHandle();
|
||||
++i;
|
||||
}
|
||||
m_sessionMap.clear();
|
||||
|
||||
Reference in New Issue
Block a user