connect() {
        if (this.status === "ready") {
            Promise.reject("Existing connection detected");
        } else {
            if (typeof this.id === "number") {
                this.initializeSocket();
            } else {
                this.getRoomInfo().then(() => this.initializeSocket());
            }
        }
    }
/**
     * Tell the bot to start a connection to the room
     */
Tell the bot to start a connection to the room
Tell the bot to start a connection to the room
connect() {
        if (this.status === "ready") {
            Promise.reject("Existing connection detected");
        } else {
            if (typeof this.id === "number") {
                this.initializeSocket();
            } else {
                this.getRoomInfo().then(() => this.initializeSocket());
            }
        }
    }
connect ( ) { if ( this . status === "ready" ) { Promise . reject ( "Existing connection detected" ) ; } else { if ( typeof this . id === "number" ) { this . initializeSocket ( ) ; } else { this . getRoomInfo ( ) . then ( ( ) => this . initializeSocket ( ) ) ; } } }
Tell the bot to start a connection to the room
Tell the bot to start a connection to the room