Constructors
Accessors
didPeerCloseConnection
- get didPeerCloseConnection(): boolean
Returns boolean
Methods
abort
- abort(error): void
Returns void
close
- close(code?, reason?): void
Parameters
- code: number = 1005
Optional
reason: string | Buffer
Returns void
ping
- ping(data?): Buffer
Returns Buffer
pong
- pong(data): void
Returns void
popOldestPeerMessage
- popOldestPeerMessage(): undefined | Data
Returns undefined | Data
receive
- receive(): Promise<Data>
Returns Promise<Data>
send
- send(message): Promise<void>
Returns Promise<void>
Return pings sent by peer.