IProtocol
Extends:
An interface for protocols that checks if all functions have been provided. Not fully necessary since it will only be checked at runtime anyway.
Method Summary
Private Methods | ||
private |
_connected(peerId: string, isOutgoing: boolean) Behavior when an arc leading to peer has been established. |
|
private |
_disconnected(peerId: string) Behavior when an arc leading to peer has been disconnected. |
|
private |
Behavior when an arc failed to establish properly. |
|
private |
Behavior when a message from peerId has been received. |
|
private |
Behavior when a stream from peerId is being received. |
Private Methods
private _connected(peerId: string, isOutgoing: boolean) source
Behavior when an arc leading to peer has been established.
private _disconnected(peerId: string) source
Behavior when an arc leading to peer has been disconnected.
Params:
Name | Type | Attribute | Description |
peerId | string |
|
The identifier of the peer reachable through the arc. |
private _failed(peerId: string, isOutgoing: boolean) source
Behavior when an arc failed to establish properly.