Class Session

This private class manages sound session rooms.

Hierarchy

  • Session

Implements

Constructors

Properties

context: AudioContext
input: GainNode
output: GainNode
rooms: Room[] = []

Accessors

Methods

  • This method closes connection to WebSocket server and destroys instance of WebSocket.

    Parameters

    • roomId: string

      This argument is string that identifies messaging room.

    Returns Session

    Return value is for method chain.

  • This method connects AudioNodes.

    Parameters

    • roomId: string

      This argument is string that identifies messaging room.

    Returns Session

    Return value is for method chain.

  • This method determines whether there is connection to server.

    Parameters

    • roomId: string

      This argument is string that identifies messaging room.

    Returns boolean

  • This method gets instance of Room that is designated Room ID.

    Parameters

    • roomId: string

      This argument is string that identifies room.

    Returns null | Room

  • This method sends sound data to server.

    Parameters

    • roomId: string

      This argument is string that identifies messaging room.

    Returns Session

    Return value is for method chain.

  • This method stops sending and receiving data.

    Parameters

    • roomId: string

      This argument is string that identifies messaging room.

    Returns Session

    Return value is for method chain.

Generated using TypeDoc