Constructors
Properties
Accessors
id
- get id(): number
Returns number
webSocket
- get webSocket(): WebSocket
Returns WebSocket
Methods
close
- close(reason?): void
Returns void
releaseWebSocket
- releaseWebSocket(): WebSocket
Returns WebSocket
sendAuthenticationRequestMessage
- sendAuthenticationRequestMessage(publicKey, challenge): Promise<void>
Parameters
- publicKey: PublicKey
- challenge: Uint8Array
Returns Promise<void>
sendAuthenticationSuccessMessage
- sendAuthenticationSuccessMessage(pingInterval): Promise<void>
Returns Promise<void>
sendCommunicationRequestMessage
- sendCommunicationRequestMessage(sourcePublicKey, targetPublicKey): Promise<void>
Parameters
- sourcePublicKey: PublicKey
- targetPublicKey: PublicKey
Returns Promise<void>
sendConnectionHandoverMessage
- sendConnectionHandoverMessage(): Promise<void>
Returns Promise<void>
sendPingMessage
- sendPingMessage(): Promise<void>
Returns Promise<void>
startPingPong
- startPingPong(pingInterval, pongTimeout): void
Parameters
- pingInterval: number
- pongTimeout: number
Returns void
stopPingPong
- stopPingPong(): Promise<void>
Returns Promise<void>
This class implements the server side of communication server communication.