HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - OutboundStream.getPeerPermission()

Home > @rainway/native > OutboundStream > getPeerPermission

OutboundStream.getPeerPermission() method

Retrieve the (optional) override permissions for a given peer. This overrides OutboundStream.permissions for a specific peer. If no override is present, the value of OutboundStream.permissions will be returned.

Signature:

getPeerPermission(peer: Peer | BigInt): RainwayInputLevel;

Parameters

ParameterTypeDescription
peerPeer | BigIntpeer or peer id

Returns:

RainwayInputLevel

permissions