Methods
on
- on(procName: string, handler: RPCHandler): void
-
Parameters
-
procName: string
-
handler: RPCHandler
Returns void
receive
- receive(procName: string, userId: Guid, ...args: any[]): void
-
Parameters
-
procName: string
-
-
Rest ...args: any[]
Returns void
removeAllHandlers
- removeAllHandlers(): void
send
- send(options: { channelName?: string; procName: string; userId?: Guid }, ...args: any[]): void
-
Parameters
-
options: { channelName?: string; procName: string; userId?: Guid }
-
Optional channelName?: string
-
procName: string
-
Optional userId?: Guid
-
Rest ...args: any[]
Returns void
RPC interface. Able to send and receive RPC calls.