Type Alias WatchOptions

WatchOptions: {
    subscriberToken?: string;
}

Options to watch to a stream.

Type declaration

  • OptionalsubscriberToken?: string

    Token to subscribe to secure streams. If you are subscribing to an unsecure stream, you can omit this param.

import { Room } from '@millicast/sdk-interactivity';

const room = new Room({
streamName,
streamAccountId,
});

await room.watch({
subscriberToken: 'SUBSCRIBER_TOKEN'
});