mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix rpc no-route errors, fix fileopen in preview (#313)
This commit is contained in:
@@ -103,6 +103,14 @@ function handleIncomingRpcMessage(msg: RpcMessage, eventHandlerFn: (event: WaveE
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (msg.command == "message") {
|
||||
if (msg.data?.oref != null) {
|
||||
console.log("rpc:message", msg.data?.oref, msg.data?.message);
|
||||
} else {
|
||||
console.log("rpc:message", msg.data?.message);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("rpc command not supported", msg);
|
||||
return;
|
||||
|
||||
@@ -107,6 +107,11 @@ class WshServerType {
|
||||
return WOS.wshServerRpcHelper_call("remotefileinfo", data, opts);
|
||||
}
|
||||
|
||||
// command "remotefilejoin" [call]
|
||||
RemoteFileJoinCommand(data: string[], opts?: RpcOpts): Promise<FileInfo> {
|
||||
return WOS.wshServerRpcHelper_call("remotefilejoin", data, opts);
|
||||
}
|
||||
|
||||
// command "remotestreamcpudata" [responsestream]
|
||||
RemoteStreamCpuDataCommand(opts?: RpcOpts): AsyncGenerator<TimeSeriesData, void, boolean> {
|
||||
return WOS.wshServerRpcHelper_responsestream("remotestreamcpudata", null, opts);
|
||||
|
||||
Reference in New Issue
Block a user