Thank you very much for your reply
In Mapattack The data flows this way.
mobile client ---(udp) --> geoloqi ---(socket.io)--> web browser.
in my understanding, the web browser is designed to listen to server.
but I want data flows this way:
web browser ---(socket.io) --> geoloqi -----> mobile clients
browser will not only listen, but also publish data to the group.
In mapattack-web.js, I find the code for setting up socket.io connection and listen to 'group' event. Based on code that code, I have tried to send back a group event to geoloqi:
socket.emit('group', { user_id :"xxx",latitude:"xxx",longitude:"xxx"});
Will geoloqi response to such a 'group' event? or is there a "geoloqi socket.io API" exists?
currently I am using ajax to communicate to game server, then game server publish data to group
(web browser --(ajax)--> game server --> geoloqi --> mobile clients)
but http request is not responsive enough for my game
The massage from console:
/-[GeoloqiSocketClient onUdpSocket:didSendDataWithTag:] (GeoloqiSocketClient.m:243)
[Write] did send
it just kept sending position data, not receiving anything. It worked perfectly days before, but it suddenly do not work now. Could you check your server once you see this massage? My demo is just hours later...
It looks like you're new here. If you want to get involved, click one of these buttons!