Home > @rainway/web > Peer > createStream
Peer.createStream() method
Request a stream from this peer.
Signature:
createStream(options: CreateStreamOptions): Promise<InboundStream>;
Parameters
Parameter | Type | Description |
---|---|---|
options | CreateStreamOptions | The 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.