src/frontend/kubefront/src/services/upstream.js
/**
     * Subsribes to events from the backend server 
     * @param  {string} topic - The topic to subscribe to
     */
Subsribes to events from the backend server
@param  {string} topic - The topic to subscribe to
Subsribes to events from the backend server @param { string } topic - The topic to subscribe to
subscribe(topic){
        if(this.socket != null){
            this.socket.send(JSON.stringify({
                action: "SUBSCRIBE",
                entity: topic,
            }))
        }
        this.subscriptions.push(topic);
    }
subscribe ( topic ) { if ( this . socket != null ) { this . socket . send ( JSON . stringify ( { action : "SUBSCRIBE" , entity : topic , } ) ) } this . subscriptions . push ( topic ) ; }
Subsribes to events from the backend server
 @param  {string} topic - The topic to subscribe to
Subsribes to events from the backend server @param { string } topic - The topic to subscribe to