disconnect(error) {
        if (this.status === "ready") {
            this.send({
                attrs: {
                  msgType: "command",
                  command: "logout",
                }
            });
            this.emit("debug", error | null);
        } else {
            Promise.reject("There's no connection to the room");
        }
    }
/**
     * Tell the client to disconnect the room
     */
Tell the client to disconnect the room
Tell the client to disconnect the room
disconnect(error) {
        if (this.status === "ready") {
            this.send({
                attrs: {
                  msgType: "command",
                  command: "logout",
                }
            });
            this.emit("debug", error | null);
        } else {
            Promise.reject("There's no connection to the room");
        }
    }
disconnect ( error ) { if ( this . status === "ready" ) { this . send ( { attrs : { msgType : "command" , command : "logout" , } } ) ; this . emit ( "debug" , error | null ) ; } else { Promise . reject ( "There's no connection to the room" ) ; } }
Tell the client to disconnect the room
Tell the client to disconnect the room