mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Implement WSConnection::send to use the text version of the broadcast.
This commit is contained in:
@@ -112,6 +112,14 @@ public:
|
||||
m_serverHandler.send (ptr, jvObj, broadcast);
|
||||
}
|
||||
|
||||
void send (const Json::Value& jvObj, const std::string& sObj, bool broadcast)
|
||||
{
|
||||
connection_ptr ptr = m_connection.lock ();
|
||||
|
||||
if (ptr)
|
||||
m_serverHandler.send (ptr, sObj, broadcast);
|
||||
}
|
||||
|
||||
void disconnect ()
|
||||
{
|
||||
// FIXME: Must dispatch to strand
|
||||
|
||||
Reference in New Issue
Block a user