IConnection interface

Extends

Properties

events
id

Methods

dispose(string)

Performs cleanup operations on this instance

isDisposed()
open()
read()
send(ConnectionMessage)
state()

Property Details

events

events: EventSource<ConnectionEvent>

Property Value

id

id: string

Property Value

string

Method Details

dispose(string)

Performs cleanup operations on this instance

function dispose(reason?: string)

Parameters

reason
string

isDisposed()

function isDisposed()

Returns

boolean

open()

function open()

Returns

read()

function read()

Returns

send(ConnectionMessage)

function send(message: ConnectionMessage)

Parameters

Returns

Promise<boolean>

state()

function state()

Returns