Universal DevTools Kit SDK / @u-devtools/core / RpcMessage
Interface: RpcMessage<T>
Defined in: index.ts:12
RPC message structure for communication between Server and Client contexts. Used for typed RPC over WebSocket (Server ↔ Client).
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | unknown | Type of the payload data |
Properties
error?
optionalerror:unknown
Defined in: index.ts:22
Error information (for error responses)
id
id:
string
Defined in: index.ts:14
Unique message identifier
method?
optionalmethod:string
Defined in: index.ts:18
RPC method name (for requests)
payload?
optionalpayload:T
Defined in: index.ts:20
Message payload data
type
type:
"request"|"response"|"event"
Defined in: index.ts:16
Message type: 'request' for RPC calls, 'response' for replies, 'event' for broadcasts