I've publish the stream service using arcgis geoevent server.
And I've get the stream layer result from arcgis server rest url (http://192.168.1.107:6080/arcgis/rest/services/GeoEvent/GPSVehicles/StreamServer ).
When I copy the html and javascript from web (REST URL > view in Javascript > view source ) to mobile using cordova, the connect becomes error.
A web socket connection to the stream service running at http://myserver:port/arcgis/rest/services/GeoEvent/GPSVehicles/StreamServer could not be established.
How to develop a map running on mobile with stream layer?
Environment:
ArcGIS Server 10.4.1
ArcGIS GeoEvent 10.4.1
ArcGIS API for JavaScript 3.19 (compact)
Visual Studio 2015 (Tools for Apache Cordova)
Android API (no specify)