Web SDK - RainwayConnectionRequest.accept

Home > rainway-sdk > RainwayConnectionRequest > accept

RainwayConnectionRequest.accept property

Accept the request.

When the connection is established, the peer is added to peers on RainwayRuntime, and onPeerStateChange(Connected) in RainwayConfig fires.

Signature:

accept: () => void;