Class: PingPacket

net/packets~PingPacket(nonce)

Ping Packet

Constructor

new PingPacket(nonce)

Create a ping packet.

Parameters:
Name Type Description
nonce Buffer
Properties:
Name Type Description
nonce BN | null
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

(private) read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

write(bw)

Serialize ping packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: