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