Web SDK - RainwayRuntime.getPeerId()

Home > rainway-sdk > RainwayRuntime > getPeerId

RainwayRuntime.getPeerId() method

Get the Peer ID for this Rainway instance.

A PeerID identifies a Rainway instance to other instances, and on web is persisted in LocalStorage.

Signature:

getPeerId(): PeerId;

Returns:

PeerId