- Preparing search index...
- The search index is not available
Deepkit
Constructors
constructor
- new RpcMessage(id: number, composite: boolean, type: number, routeType: RpcMessageRouteType, bodyOffset: number, bodySize: number, buffer?: Uint8Array): RpcMessage
-
Parameters
-
id: number
-
composite: boolean
-
type: number
-
-
bodyOffset: number
-
bodySize: number
-
Optional
buffer: Uint8Array
Properties
bodyOffset
bodyOffset: number
bodySize
bodySize: number
Optional
buffer
buffer?: Uint8Array
composite
composite: boolean
Protected
Optional
destination
destination?: string
Protected
Optional
peerId
peerId?: string
Protected
Optional
source
source?: string
Methods
debug
- debug(): {
body: undefined | object;
composite: boolean;
date: Date;
id: number;
messages: {
body: undefined | object;
date: Date;
id: number;
type: number;
}[];
type: number;
}
-
Returns {
body: undefined | object;
composite: boolean;
date: Date;
id: number;
messages: {
body: undefined | object;
date: Date;
id: number;
type: number;
}[];
type: number;
}
-
body: undefined | object
-
composite: boolean
-
date: Date
-
id: number
-
messages: {
body: undefined | object;
date: Date;
id: number;
type: number;
}[]
-
type: number
getBuffer
- getBuffer(): Uint8Array
-
Returns Uint8Array
getDestination
- getDestination(): Uint8Array
-
Returns Uint8Array
getError
- getError(): Error
-
Returns Error
getPeerId
- getPeerId(): string
-
Returns string
getSource
- getSource(): Uint8Array
-
Returns Uint8Array
isError
- isError(): boolean
-
Returns boolean
parseBody
- parseBody<T>(type?: ReceiveType<T>): T
-
Parameters
-
Optional
type: ReceiveType<T>
Returns T
parseGenericBody
- parseGenericBody(): object
-
Returns object