HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - Peer.get()

Home > rainway-sdk-native > Peer > get

Peer.get() method

Looks up a peer by id and returns undefined if the peer is unknown. As peers are registered when they disconnect, a peer you think exists may no longer be present.

Signature:

static get(id: PeerId): Peer | undefined;

Parameters

ParameterTypeDescription
idPeerId

Returns:

Peer | undefined