Creates a new Server instance.
Optionalport: number = 25565The port to listen on. Defaults to 25565.
Optionalhost: stringThe host to listen on. Defaults to all interfaces.
StaticdefaultStaticmaximumStaticwebsocketOptionalevent: "clientConnected"Sets up a WebSocket server and allow WebSocket connections under the same port.
The UpgradingHttpServer instance.
StatictcpHandles incoming packets from the client.
A client instance.
Optionaldata: Buffer<ArrayBufferLike>The data received from the client.
Represents a Minecraft Classic server.