Implementation of an EnclaveProvider over a websocket connection.

Hierarchy

  • EnclaveWSProvider

Implements

Constructors

Properties

initialized: boolean
onclose: null | ((ev: CloseEvent) => any)

Callback handler when the link gets closed.

onerror: null | ((ev: Event) => any)

Callback handler when an error related to the connection is encountered.

onmessage: null | ((ev: MessageEvent<any>) => any)

Callback handler when a message is received over the connection.

onopen: null | ((ev: Event) => any)

Callback handler when the connection is established.

url: string
ws?: any

Methods

  • Sends data to the enclave.

    Throws

    An error when the connection was not setup beforehand with connect().

    Parameters

    • data: string | ArrayBufferLike | Blob | ArrayBufferView

      The data to send.

    Returns void

Generated using TypeDoc