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: Guid, ...args: any[]): 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