Node.js SDK - Peer.getAssert()

Home > rainway-sdk-native > Peer > getAssert

Peer.getAssert() method

Get a given Peer by its ID. Asserts that the peer exists and never returns null.

Signature:

static getAssert(id: PeerId): Peer;

Parameters

ParameterTypeDescription
idPeerId

Returns:

Peer