Web SDK - Peer.createStream()

Home > @rainway/web > Peer > createStream

Peer.createStream() method

Request a stream from this peer.

Signature:

createStream(options: CreateStreamOptions): Promise<InboundStream>;

Parameters

ParameterTypeDescription
optionsCreateStreamOptionsThe options for stream creation.

Returns:

Promise<InboundStream>

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