disconnect method

void disconnect()

Implementation

void disconnect() {
  onLog?.call('🔌 Disconnecting socket…');
  _teardown();
  currentSessionId = null;
  currentRole      = null;
}