2023-04-08 20:52:47 +01:00
|
|
|
import { Reader, Writer } from "../../bufferStuff";
|
|
|
|
import { Packets } from "../enums/Packets";
|
|
|
|
import { IPacket } from "./IPacket";
|
|
|
|
|
|
|
|
export class PacketKeepAlive implements IPacket {
|
|
|
|
public packetId = Packets.KeepAlive;
|
|
|
|
private static readonly KeepAliveBuffer:Buffer = new Writer(1).writeByte(Packets.KeepAlive).toBuffer();
|
|
|
|
|
|
|
|
public readData(reader:Reader) {
|
2023-04-09 04:51:30 +01:00
|
|
|
reader;
|
2023-04-08 20:52:47 +01:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public writeData() {
|
|
|
|
return PacketKeepAlive.KeepAliveBuffer;
|
|
|
|
}
|
|
|
|
}
|