Creates a new TextPacket class
The type of the packet.
An array of strings to include, they will be joined by a newline character. (\n
)
An array of strings to include, they will be joined by a newline character. (\n
)
The type of the packet.
Static
fromCreates a TextPacket class.
The type of the packet.
Rest
...strings: string[]Strings to include to the packet. They are not arrays, but instead they are arguments for the function.
Static
fromCreates a TextPacket class from a Buffer.
The buffer to convert.
TextPacket class to create text packets such as for actions or other uses.