connect method

  1. @override
void connect()
override

Create a fresh Socket.io connection.

Implementation

@override
void connect() {
  socket.connect();

  // Reconnect to all channels
  onReconnect(
    (_) => [
      for (final channel in channels.values) channel.subscribe(),
    ],
  );
}