subscribeWidget(widgetId, callback, dataConfig) {
        this.widgetMap[widgetId] = callback;
        this.waitForConn(this.webSocket, () => {
            let configJSON = {
                providerName: dataConfig.configs.type,
                dataProviderConfiguration: dataConfig.configs.config,
                topic: widgetId,
                action: 'subscribe'
            };
        this.webSocket.send(JSON.stringify(configJSON));
    })
    }
/**
     * Set a widget to the widget map and send configuration to the provider endpoint.
     * @param widgetId
     * @param callback
     * @param dataConfig
     */
Set a widget to the widget map and send configuration to the provider endpoint.
Set a widget to the widget map and send configuration to the provider endpoint .
subscribeWidget(widgetId, callback, dataConfig) {
        this.widgetMap[widgetId] = callback;
        this.waitForConn(this.webSocket, () => {
            let configJSON = {
                providerName: dataConfig.configs.type,
                dataProviderConfiguration: dataConfig.configs.config,
                topic: widgetId,
                action: 'subscribe'
            };
        this.webSocket.send(JSON.stringify(configJSON));
    })
    }
subscribeWidget ( widgetId , callback , dataConfig ) { this . widgetMap [ widgetId ] = callback ; this . waitForConn ( this . webSocket , ( ) => { let configJSON = { providerName : dataConfig . configs . type , dataProviderConfiguration : dataConfig . configs . config , topic : widgetId , action : 'subscribe' } ; this . webSocket . send ( JSON . stringify ( configJSON ) ) ; } ) }
Set a widget to the widget map and send configuration to the provider endpoint.
Set a widget to the widget map and send configuration to the provider endpoint .