Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

The Server Connection

mega12345mega edited this page Mar 6, 2021 · 1 revision

To get a server connection, you either have to run Server::getConnections() or wait for the ConnectHandler to fire:

ServerConnection extends Connection, so use the same methods as Connection to send messages.

To set a timeout on packet replies, modify the static timeout variable:

Server.timeout = 5000 for a 5 second timeout

Note Server, not ServerConnection for timeouts.

Clone this wiki locally