Web SDK - RainwayRuntime.cancelConnectionAttempt()

Home > rainway-sdk > RainwayRuntime > cancelConnectionAttempt

RainwayRuntime.cancelConnectionAttempt() method

Cancel the pending connection attempt to a hostname, if there is one.

Signature:

cancelConnectionAttempt(peerId: PeerId): void;

Parameters

ParameterTypeDescription
peerIdPeerId

Returns:

void