_wsOnMessage(message) {
        let data = JSON.parse(message.data);
        if (this.widgetMap[data.topic]) {
            this.widgetMap[data.topic](data);
        } else {
            // TODO: Error logging
        }
    }
/**
     * handle web-socket on message event
     * @param message
     * @private
     */
handle web-socket on message event
@param message
@private
handle web - socket on message event @param message @private
_wsOnMessage(message) {
        let data = JSON.parse(message.data);
        if (this.widgetMap[data.topic]) {
            this.widgetMap[data.topic](data);
        } else {
        }
    }
_wsOnMessage ( message ) { let data = JSON . parse ( message . data ) ; if ( this . widgetMap [ data . topic ] ) { this . widgetMap [ data . topic ] ( data ) ; } else { } }
handle web-socket on message event
 @param message
 @private
handle web - socket on message event @param message @private
// TODO: Error logging