Class Room

This class is entity for room feature in session.

Hierarchy

  • Room

Implements

Constructors

Properties

analyser: Analyser
context: AudioContext
id: string
receiver: ScriptProcessorNode
sender: ScriptProcessorNode
websocket: null | WebSocket = null
BUFFER_SIZE: number = 2048

Accessors

Methods

  • This method closes connection to WebSocket server and destroys instance of WebSocket. Namely, leave room permanently.

    Returns void

  • This method determines whether there is connection to server.

    Returns boolean

    If connection to server exists, this value is true. Otherwise, this value is false.

  • This method creates instance of WebSocket and registers event handlers. Namely, join room.

    Parameters

    Returns void

  • This method stops sending and receiving data by disconnecting AudioNode. Namely, leave room temporarily.

    Returns void

Generated using TypeDoc