diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-08-27 12:24:19 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2026-08-27 12:24:19 -0700 |
| commit | e6e85510e59ea68e75b565de49522ce3327c056d (patch) | |
| tree | 59309cb4c8455b1cd986bde35c786631427475f8 /indra/newview/llscripteditorws.cpp | |
| parent | e86a0501bc655548aaadeb1d6475fa1652787098 (diff) | |
Issue #6188: standardize and implement missing `system.*` methods.
Diffstat (limited to 'indra/newview/llscripteditorws.cpp')
| -rw-r--r-- | indra/newview/llscripteditorws.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/indra/newview/llscripteditorws.cpp b/indra/newview/llscripteditorws.cpp index 729f335db4..41efa7e016 100644 --- a/indra/newview/llscripteditorws.cpp +++ b/indra/newview/llscripteditorws.cpp @@ -1251,6 +1251,33 @@ void LLScriptEditorWSServer::broadcastLanguageChange() } } +LLSD LLScriptEditorWSServer::handlePing( + const LLJSONRPCConnection::ptr_t& connection, + const LLSD& params) const +{ + LLSD result; + result["pong"] = "pong"; + + if (params.has("timestamp")) + { + result["timestamp"] = params["timestamp"]; + } + + result["server_time"] = static_cast<LLSD::Integer>( + LLDate::now().secondsSinceEpoch() * 1000.0); + return result; +} + +LLSD LLScriptEditorWSServer::handleGetVersion( + const LLJSONRPCConnection::ptr_t& connection, + const LLSD& params) const +{ + LLSD result; + result["client_name"] = LLVersionInfo::instance().getChannel(); + result["client_version"] = LLVersionInfo::instance().getVersion(); + return result; +} + LLSD LLScriptEditorWSServer::handleLanguageIdRequest() const { LLSD response; |
