public/script/control_connection.js
// message Id will be associated to the message.
message Id will be associated to the message.
message Id will be associated to the message .
async sendInternal(message) {
        message.messageId = generateMessageId();
        this.#socket.send(JSON.stringify(message));
        return new Promise(resolve =>
            this.#responses.set(message.messageId, resolve));
    }
async sendInternal ( message ) { message . messageId = generateMessageId ( ) ; this . #socket . send ( JSON . stringify ( message ) ) ; return new Promise ( resolve => this . #responses . set ( message . messageId , resolve ) ) ; }
message Id will be associated to the message.
message Id will be associated to the message .