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
Parameter | Type | Description |
---|---|---|
peer | Peer | BigInt | peer or peer id |
value | RainwayInputLevel | permissions |
Returns:
void