diff --git a/src/ripple_app/websocket/WSConnection.h b/src/ripple_app/websocket/WSConnection.h index 0b24fb9b5..3bdef1e9e 100644 --- a/src/ripple_app/websocket/WSConnection.h +++ b/src/ripple_app/websocket/WSConnection.h @@ -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