src/frontend/kubefront/src/services/upstream.js
/**
     * Unsubscribes from events from the backend server
     * @param  {string} topic - The topic to unsubscribe from
     */
Unsubscribes from events from the backend server
@param  {string} topic - The topic to unsubscribe from
Unsubscribes from events from the backend server @param { string } topic - The topic to unsubscribe from
unsubscribe(topic){
        if(this.socket != null){
            this.socket.send(JSON.stringify({
                action: "UNSUBSCRIBE",
                entity: topic,
            }))
        }
        this.subscriptions = this.subscriptions.filter(x => x != topic)
    }
unsubscribe ( topic ) { if ( this . socket != null ) { this . socket . send ( JSON . stringify ( { action : "UNSUBSCRIBE" , entity : topic , } ) ) } this . subscriptions = this . subscriptions . filter ( x => x != topic ) }
Unsubscribes from events from the backend server
 @param  {string} topic - The topic to unsubscribe from
Unsubscribes from events from the backend server @param { string } topic - The topic to unsubscribe from