Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RPC

RPC interface. Able to send and receive RPC calls.

Hierarchy

  • RPC

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

context

Methods

on

  • on(procName: string, handler: RPCHandler): void
  • Parameters

    • procName: string
    • handler: RPCHandler

    Returns void

receive

  • receive(procName: string, userId: string, ...args: any[]): void
  • Parameters

    • procName: string
    • userId: string
    • Rest ...args: any[]

    Returns void

removeAllHandlers

  • removeAllHandlers(): void

send

  • send(options: object, ...args: any[]): void
  • Parameters

    • options: object
    • Rest ...args: any[]

    Returns void