Options
All
  • Public
  • Public/Protected
  • All
Menu

Uses a browser Websocket.

Hierarchy

Index

Constructors

constructor

Methods

addListener

connect

createWebSocket

  • createWebSocket(endpoint: string, accessToken?: string): any
  • override

    Parameters

    • endpoint: string

      the url that will connected to

    • Optional accessToken: string

      Here the access token is passed as a second param to new WebSocket() and will be read by the support server as a "subprotocol" in the Sec-WebSocket-Protocol header value.

    Returns any

    • the specific implementation of a websocket

getBufferedAmount

  • getBufferedAmount(): number

getListeners

getProtocol

  • getProtocol(): string

getReadyState

getState

getUrl

  • getUrl(): String

isOpen

  • isOpen(): boolean

removeListener

sendClose

sendPing

sendPong

sendText

Static createInstance

  • Create an instance of this class

    Parameters

    • endpoint: string

    Returns BrowserWebSocketImpl

Generated using TypeDoc