@fishjam-cloud/js-server-sdk - v0.24.0
    Preparing search index...

    Class FishjamClient

    Client class that allows to manage Rooms and Peers for a Fishjam App. It requires the Fishjam ID and management token that can be retrieved from the Fishjam Dashboard.

    Index

    Constructors

    Methods

    • Refresh the peer token for an already existing peer. If an already created peer has not been connected to the room for more than 24 hours, the token will become invalid. This method can be used to generate a new peer token for the existing peer.

      Parameters

      Returns Promise<string>

      refreshed peer token

    • Subscribe a peer to another peer - this will make all tracks from the publisher available to the subscriber. Using this function only makes sense if subscribeMode is set to manual

      Parameters

      Returns Promise<void>

    • Subscribe a peer to specific tracks from another peer - this will make only the specified tracks from the publisher available to the subscriber. Using this function only makes sense if subscribeMode is set to manual

      Parameters

      Returns Promise<void>