Class Rpc

Bus RPC layer

Hierarchy

  • Rpc

Constructors

Properties

blockingFrames: boolean
blockingNotifications: boolean
client: Bus

attached bus client

onCall: ((call) => undefined | Buffer | Promise<undefined | Buffer>)

Type declaration

    • (call): undefined | Buffer | Promise<undefined | Buffer>
    • Method, called on incoming RPC calls

      Parameters

      Returns undefined | Buffer | Promise<undefined | Buffer>

onFrame?: ((frame) => void | Promise<void>)

Type declaration

    • (frame): void | Promise<void>
    • Method, called on incoming frames

      Parameters

      Returns void | Promise<void>

onNotification?: ((notification) => void | Promise<void>)

Type declaration

    • (notification): void | Promise<void>
    • Method, called on incoming RPC notifications

      Parameters

      Returns void | Promise<void>

Methods

  • Performs RPC call

    Parameters

    • target: string

      RPC target

    • method: string

      RPC method on the target

    • Optional params: Buffer
    • Optional qos: QoS

      QoS

    Returns Promise<RpcOpResult>

  • Performs RPC call with no reply required

    Parameters

    • target: string

      RPC target

    • method: string

      RPC method on the target

    • Optional params: Buffer
    • Optional qos: QoS

      QoS

    Returns Promise<OpResult>

  • Is RPC client connected

    Returns boolean

  • Sends RPC notification

    Parameters

    • target: string

      notification target

    • Optional payload: Buffer

      payload

    • Optional qos: QoS

      QoS

    Returns Promise<OpResult>

Generated using TypeDoc