WebsocketMessageAdapter class

Constructors

WebsocketMessageAdapter(string, string, IWebsocketMessageFormatter, ProxyInfo, [key: string]: string)

Properties

close
events
forceNpmWebSocket
open
read
send
state

Constructor Details

WebsocketMessageAdapter(string, string, IWebsocketMessageFormatter, ProxyInfo, [key: string]: string)

new WebsocketMessageAdapter(uri: string, connectionId: string, messageFormatter: IWebsocketMessageFormatter, proxyInfo: ProxyInfo, headers: [key: string]: string)

Parameters

uri
string
connectionId
string
messageFormatter
IWebsocketMessageFormatter
proxyInfo
ProxyInfo
headers
[key: string]: string

Property Details

close

close: (reason?: string) => Promise<boolean>

Property Value

(reason?: string) => Promise<boolean>

events

events: EventSource<ConnectionEvent>

Property Value

forceNpmWebSocket

static forceNpmWebSocket: boolean

Property Value

boolean

open

open: () => Promise<ConnectionOpenResponse>

Property Value

() => Promise<ConnectionOpenResponse>

read

read: () => Promise<ConnectionMessage>

Property Value

() => Promise<ConnectionMessage>

send

send: (message: ConnectionMessage) => Promise<boolean>

Property Value

(message: ConnectionMessage) => Promise<boolean>

state

state: ConnectionState

Property Value