mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-17 12:17:38 -04:00

Normally, the client will send a kick packet if the client is disconnected from the server, but if the connection is lost due to network or lower-level protocol issues, the 'end' event will be emitted. Log this event in the examples so it is clear why the scripts exit.