HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - RainwayConnection.cancelConnectionAttempt()

Home > @rainway/web > RainwayConnection > cancelConnectionAttempt

RainwayConnection.cancelConnectionAttempt() method

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

Signature:

cancelConnectionAttempt(peerId: PeerId): void;

Parameters

ParameterTypeDescription
peerIdPeerId

Returns:

void