kill method

void kill(
  1. String reason
)

Kills the connection with reason, as the server's kill message does: the client stays offline until the instance is recreated.

Implementation

void kill(String reason) {
  final _FakeConnection connection = _conn;
  connection._killed = true;
  connection._timer?.cancel();
  connection._timer = null;
  connection._delegate.onServerShutdown(reason);
  connection._drop(reconnect: false);
}