Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MeldTransportSecurity

Implemented by

Index

Methods

Methods

Optional setPrincipal

  • Initialises this extension with the application security principal. This method will only be called once.

    Parameters

    • principal: AppPrincipal | undefined

      the current application principal (user or machine)

    Returns void

wire

  • wire(data: Buffer, type: MeldMessageType, direction: "in" | "out", state: MeldReadState | null): Buffer | Promise<Buffer>
  • Check and/or transform wire data.

    Parameters

    • data: Buffer

      the data to operate on

    • type: MeldMessageType

      the message purpose

    • direction: "in" | "out"

      message direction relative to the local clone

    • state: MeldReadState | null

      the current state of the clone. This may be null, but only for bootstrap messages, i.e. type is http://control.m-ld.org/request/clock or http://control.m-ld.org/request/snapshot (and no prior state exists).

    Returns Buffer | Promise<Buffer>

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property

Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.7.1-4 Source code licensed MIT. Privacy policy