Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebSocket

A WebSocket connection that is valid from open to close event

Hierarchy

  • WebSocket

Index

Methods

close

  • Forefully closes this WebSocket. Immediately calls close handler.

    Returns WebSocket

end

getBufferedAmount

  • getBufferedAmount(): number
  • Returns the bytes buffered in backpressure.

    Returns number

getRemoteAddress

  • getRemoteAddress(): ArrayBuffer
  • Returns the remote IP address

    Returns ArrayBuffer

publish

send

  • send(message: RecognizedString, isBinary: boolean, compress: boolean): boolean
  • Sends a message. Make sure to check getBufferedAmount() before sending. Returns true for success, false for built up backpressure that will drain when time is given.

    Parameters

    Returns boolean

subscribe

unsubscribe

Generated using TypeDoc