connect method

Future<void> connect()

Implementation

Future<void> connect() async {
  await connection.connect();
  if (connection.connected) {
    connection.send('connect', this.toJson());
  }
}