connect method

void connect()

Implementation

void connect() {
  sendMessageToWeb(jsonEncode({
    "type": "connect",
    "roomId": roomId,
    "message": {"roomId": roomId, "publicKey": publicKey}
  }));
}