How to implement server side for websockets with an Apache/PHP app? -
i need add push notifications php based application , researching best way this.
having searched both web , indeed here @ stackoverflow have seen lot of potentially outdated information regarding best way achieve in 2013.
i looking use websockets primary technology functionality understanding php not way go implementing server side , decoupling real time notifications main app best bet.
currently looks though installing node.js/socket.io alongside php way go. although not clear on how can send message php app node.js in order initiate push. however, rather not node.js right , prefer separate solution if possible. have read little pywebsocket. how compare?
in summary, best way set scalable real time notifications system using websockets can have pushes initiated php app? there standalone websockets server available? if how compare node.js implementation?
you can use lightstreamer (http://www.lightstreamer.com), stand-alone real-time server, using websockets , other techniques automatically. in particular, can send messages php app lightstreamer server php adapter, is, piece of code talks lightstreamer server on tcp sockets (a simple example available here: http://forums.lightstreamer.com/showthread.php?515-php-in-lightstreamer).
[disclaimer: cto of lightstreamer]
Comments
Post a Comment