Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientProxyHandler<T>

A proxy handler that will send any method invocation on the proxied object as a rcp protocol message over a channel.

Type Parameters

  • T extends object

Hierarchy

  • ClientProxyHandler

Implements

  • ProxyHandler<T>

Index

Constructors

Properties

channelProvider: (() => Promise<Channel>)

Type declaration

    • (): Promise<Channel>
    • Returns Promise<Channel>

decoder: RpcMessageDecoder
encoder: RpcMessageEncoder
id: string
isRpcInitialized: boolean = false
rpcDeferred: Deferred<RpcProtocol> = ...

Methods

  • get(target: any, name: string, receiver: any): any
  • initializeRpc(): void
  • isNotification(p: PropertyKey): boolean
  • Return whether the given property represents a notification. If true, the promise returned from the invocation will resolve immediately to undefined

    A property leads to a notification rather than a method call if its name begins with notify or on.

    Parameters

    • p: PropertyKey

      The property being called on the proxy.

    Returns boolean

    Whether p represents a notification.