--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "mongoose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongoose-users/hjuK--IxZrY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongoose-user...@googlegroups.com.
Hi Sergey, thanks for getting back to me.We want to use a persistent websocket connection between our media players and a remote central server.The media players need to receive remote control instructions from a tablet / phone interface without the players having to be constantly polling the server.We can't connect the two directly because even though the tablet and the media player may be in the same physical venue they may not be on the same LAN or one may be on a public WiFi service hence they can't communicate directly.Any thoughts gratefully received
Agreed, and mongoose works brilliantly that way- the thing is that we hundreds of players in different venues that need to talk to a central server...Here's a good example of what we're doing http://www.secretdj.com/map-feed/ though is for customers phone's so its ok latency is ok and the media players can poll a central service once or twice a minuteThe tablet remote control is for staff in venue who will expect fast responses so having media players poll at an increased frequency become too heavyweight,The architecture we envisage is that the tablets send request to a central server which then sends the request to the relevant media player over websocket thus getting around the need for the players to poll.
Does that sound sensible?
Really interesting - thank you!I guess one big issue is that table clients cannot physically access media players because they are not visible due to firewalls etc so without using some form of reverse tunnelling (which would have to persist somehow anyway) thus the server has to do fan out - essentially ruling out A/B
In addition it (currently) is the players that poll the server - again because the server cannot see (most of) the playersIn this scenario do you still think its better the media players poll?
Websockets seemed like the 'right' way to do it but the problems you outline re: threading etc do make them seem a bit theoretical and not quite ready for primetime...
Agreed - would much rather have the server instigate via polling - the problem is that in practice its extremely difficult to get parent companies / the big IT providers to open up a port - default answer is always 'no' and though some can be convinced others just regard is as not worth the theoretical risk regardless.
I'll checkout Pavel's blog - if its sturdy enough then brilliant!Many thanks