Skip to content

Type Alias: JSONRPCRequestInfo ​

JSONRPCRequestInfo = object

The JSON-RPC request behind a service action's request, as jsonRPCRequestOfContext returns it.

Properties ​

id ​

id: string | number | null | undefined

The request's id; undefined for a notification (no response is sent).


method ​

method: string

The request's method.


transport ​

transport: "http" | "websocket" | "stdio" | "webrtc"

The transport the request came through: 'http', 'websocket' or 'stdio' with jsonRPCServiceEntrypoint, 'webrtc' with the data channels of webrtcServiceEntrypoint (package @lakutata/webrtc).

Released under the MIT License.