writePacket abstract method

Uint8List writePacket(
  1. ServerPacket packet, {
  2. PacketCompression compression = PacketCompression.none,
})

Write a single server packet. This includes writing the length and packet id.

Implementation

Uint8List writePacket(ServerPacket packet,
    {PacketCompression compression = PacketCompression.none});