From 0d744cc25346b079ca10d9d966df19ad0832d5d9 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 22 Sep 2013 15:55:36 -0700 Subject: [PATCH] Implement WSConnection::send to use the text version of the broadcast. --- src/ripple_app/websocket/WSConnection.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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