Hi every one,
I have many mobile device was connected to a web socket and now i want to send data to one or group devices in them. How to do it?
P/s: sorrry, my enlish is not main language.
Assuming you are interested in continuing to have mobile devices connect via web socket, you will probably want to use a GeoEvent stream service output. There is no built-in concept of addressing event data broadcast by a stream service output to a specific recipient, single mobile device, or group of devices. A client subscribing to the the stream service generally receives all event data being broadcast by the output.
If you do not want to develop a client-side solution, you could configure a GeoEvent Service to handle the filtering. You would configure a Filter element within a GeoEvent Service such that only messages for a particular client (based on the client identifier) were sent to a particular stream service output. The GeoEvent Service would then have separate outputs for each potential client. Individual clients could then be directed to subscribe to a specific GeoEvent output's stream and receive all of the data being provided by that output.
The downside to the server-side approach is that you would have to "hard code" filters into a GeoEvent Service to handle all of the different client identifiers. This isn't necessarily a problem if you have a fixed, well-known set of subscribers -- but could become a headache if you have to update your GeoEvent Service every time you want to add a subscriber to the solution.
Hope this information helps -
Note: A draft of the technical workshop 'Leveraging Stream Services' slides from the 2015 User Conference are available at the following link: Real-Time GIS: Leveraging Stream Services. Videos of the technical workshops should be available to review and download fromEsri's E80 site in a few weeks.
Retrieving data ...