createSocket function

Future<void> createSocket(
  1. String host, {
  2. int port = 25575,
})

Creates and stores a socket connected to the RCON server with the given host (IP/FQDN) and port.

Implementation

Future<void> createSocket(String host, {int port = 25575}) async {
  rconSck = await Socket.connect(host, port);
}