![]() |
VR-Forces Developer's Guide
|
Go to the source code of this file.
Functions | |
| bool | DtWebLvcSendJson (const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, const Json::Value &msg) |
|
inline |
Serialize msg as compact JSON and deliver it to the WebSocket connection. Increments session.messagesSent and session.bytesSent under session.mutex. Caller must NOT hold session.mutex.
References DtWebLvcClientSession::addLog(), DtWebLvcClientSession::bytesSent, DtWebLvcClientSession::connected, DtWebLvcClientSession::messagesSent, and DtWebLvcClientSession::mutex.