diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js index c963c34476e..fbecf66217f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js @@ -156,7 +156,7 @@ SpatialObject.prototype.update = function (geoJSON) { /* //This is implemented in alertWebSocket if (this.state != "NORMAL") { - notifyArt("Object ID: " + this.id + " change state to: " + geoJSON.properties.state + " Info : " + this.information); + notifyAlert("Object ID: " + this.id + " change state to: " + geoJSON.properties.state + " Info : " + this.information); }*/ var newLineStringGeoJson = this.createLineStringFeature(this.state, this.information, [this.latitude, this.longitude]); this.pathGeoJsons.push(newLineStringGeoJson); @@ -561,6 +561,8 @@ var webSocketOnAlertMessage = function processMessage(message) { var json = $.parseJSON(message.data); if (json.messageType == "Alert") { processAlertMessage(json); + }else { + console.log("Message type not supported."); } } };