Faster publishing of order book changes to book listeners

This commit is contained in:
JoelKatz
2013-05-14 18:25:47 -07:00
parent e04ca79778
commit 423635d2ef
3 changed files with 19 additions and 7 deletions

View File

@@ -95,6 +95,13 @@ public:
mHandler->send(ptr, jvObj, broadcast);
}
void send(const Json::Value& jvObj, const std::string& sObj, bool broadcast)
{
connection_ptr ptr = mConnection.lock();
if (ptr)
mHandler->send(ptr, sObj, broadcast);
}
// Utilities
Json::Value invokeCommand(Json::Value& jvRequest)
{