HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - OutboundStream.setPeerPermission()

Home > @rainway/native > OutboundStream > setPeerPermission

OutboundStream.setPeerPermission() method

Set the (optional) override permissions for a given peer. This overrides OutboundStream.permissions for a specific peer.

Signature:

setPeerPermission(peer: Peer | BigInt, value: RainwayInputLevel): void;

Parameters

ParameterTypeDescription
peerPeer | BigIntpeer or peer id
valueRainwayInputLevelpermissions

Returns:

void