Web SDK - RainwayPeer.requestStream()

Home > rainway-sdk > RainwayPeer > requestStream

RainwayPeer.requestStream() method

Request a Rainway stream from this peer.

Signature:

requestStream(inputLevel: InputLevel): Promise<RainwayStream>;

Parameters

ParameterTypeDescription
inputLevelInputLevelThe level of input requested over the remote stream.

Returns:

Promise<RainwayStream>

  • A Promise resolving in a RainwayStream object if the request is accepted. The Promise results in an error if the request is rejected.