tag:blogger.com,1999:blog-8608211478818017779.post8891994413130661027..comments2023-05-09T01:13:37.170-07:00Comments on Ambient technology towards pervasive media: PHP WebSocket Server FrameworkJeffhttp://www.blogger.com/profile/16815929519376299914noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8608211478818017779.post-30829013241472025052011-12-21T09:59:12.869-08:002011-12-21T09:59:12.869-08:00Hi, in my first comment I ment connected browsers....Hi, in my first comment I ment connected browsers. I cant understand how should application react to new client or if client is disconnected. <br /><br />So if I may have suggestion :)<br />add "public function onConnect(User)" and "public function onDisconnect(User)" into wsapp.interface.php so every application can manage active clients (browsers).<br /><br />Good think is also edit onMessage(msg) in wsapp.interface.php to onMessage(msg,User). So application would know about which client is sending message and can react to that. <br /><br />This way you can manage behavior in each application. One can broadcast message thru iteration over clients. Second can just send message back to one client. Third can group clients and send messages only to his group etc.<br /><br />And one more question, do you have plan about adding flash socket support?<br /><br /><br /><br />And if i can ask youMareceKhttps://www.blogger.com/profile/05036042921361766029noreply@blogger.comtag:blogger.com,1999:blog-8608211478818017779.post-41580948897567039952011-12-18T18:14:23.431-08:002011-12-18T18:14:23.431-08:00I will try and pull wss into the next update.I will try and pull wss into the next update.Jeffhttps://www.blogger.com/profile/16815929519376299914noreply@blogger.comtag:blogger.com,1999:blog-8608211478818017779.post-67119684928103543182011-12-16T04:01:17.318-08:002011-12-16T04:01:17.318-08:00Great, great job!
Any plans on adding support for...Great, great job!<br /><br />Any plans on adding support for secure sockets (wss)?Kristian Andersenhttps://www.blogger.com/profile/08149652430326242169noreply@blogger.comtag:blogger.com,1999:blog-8608211478818017779.post-30106565377213680572011-12-09T15:27:09.405-08:002011-12-09T15:27:09.405-08:00Thanks for the comments, let me try and address th...Thanks for the comments, let me try and address them here.<br /><br />There is no client library the assumption is that the client is the browser. There are however client packages available for most programming platforms (e.g Socket.IO) just search for websocket client.<br /><br />As to broadcast, I am looking into that now. It shouldn't be a big problem, I just need to iterate across the socket list and send the message to each active client for a service. Look for an update soon.Jeffhttps://www.blogger.com/profile/16815929519376299914noreply@blogger.comtag:blogger.com,1999:blog-8608211478818017779.post-57843558687801280592011-11-28T07:11:12.834-08:002011-11-28T07:11:12.834-08:00Hi Jeff,
very nice implementation.
is it possible...Hi Jeff,<br /><br />very nice implementation.<br />is it possible to broadcast a message or how would I most simply implement something like this?<br /><br />Thanks!<br />peterhpethttps://www.blogger.com/profile/00479021479397803492noreply@blogger.comtag:blogger.com,1999:blog-8608211478818017779.post-8571451081853912972011-11-28T07:03:01.928-08:002011-11-28T07:03:01.928-08:00Hi Jeff,
Very nice implementation.
It is possible...Hi Jeff,<br /><br />Very nice implementation.<br />It is possible to add feature to broadcast message? ...or what would be the easiest way to implement this?<br /><br />Thanks,<br />Peterhpethttps://www.blogger.com/profile/00479021479397803492noreply@blogger.comtag:blogger.com,1999:blog-8608211478818017779.post-90914835242236087552011-11-25T16:19:59.599-08:002011-11-25T16:19:59.599-08:00Hi :)
nice peace of work, I spended whole day look...Hi :)<br />nice peace of work, I spended whole day looking for working websocket implementation in php.<br /><br />Iam bit confused about interface. How can i send messages from one client to another, there isnt any client list in application. In fakt application doesnt know anything about active users.<br /><br />Thx for answer :)MareceKhttps://www.blogger.com/profile/05036042921361766029noreply@blogger.com