I really like the Faye implementation of Bayeux; I can hook up callbacks to subscribe events and update presence lists in memcached all in ruby, which is nice. I don't think Bayeux is that complex, and it adds a nice thin layer of abstraction on top of several transports (long-polling, polling, and websockets), which gives me some flexibility and isolates me from things like changes in the websocket protocol.
-Pete On Oct 23, 2010, at 3:28 AM, Jonathan Chetwynd wrote: > Pete, > > why Bayeux, and not NGiNX_HTTP_Push_Module?** > > Jonathan > http://www.peepo.com > > **http://pushmodule.slact.net/ > > > On 22 Oct 2010, at 23:11, Pete Schwamb wrote: > >> >> Bayeux and Faye (the bayeux impl I'm using) currently support Web Sockets, >> but nginx (my web server front end) does not, and the WebSocket protocol is >> still changing. >> >> -Pete >> >> On Oct 22, 2010, at 5:08 PM, Michael Williams wrote: >> >>> I would consider HTML5 web sockets if you are interested in eventually >>> removing your Bayeux dependancy. >>> >>> >>> On Fri, Oct 22, 2010 at 12:33 PM, David Fotland <[email protected]> >>> wrote: >>>> If I supported your server and protocol, I would follow your rules :) >>>> >>>> Thanks, >>>> >>>> David >>>> >>>>> -----Original Message----- >>>>> From: [email protected] [mailto:computer-go- >>>>> [email protected]] On Behalf Of Pete Schwamb >>>>> Sent: Friday, October 22, 2010 9:13 AM >>>>> To: [email protected] >>>>> Subject: Re: [Computer-go] OS and scoring >>>>> >>>>> Ah, sorry for the misread. Yes, the protocol allows all those things, and >>>> I >>>>> would love to have more players. The considerations that come to mind >>>> are: >>>>> >>>>> 1) All the previous caveats about protocol compatibility and likely >>>> changes >>>>> apply. >>>>> 2) I would want you to support Bayeux for events, like players arriving in >>>>> rooms, or game events, rather than just continuously polling the server >>>>> (which could cause resource issues). >>>>> >>>>> -Pete >>>>> >>>>> On Oct 22, 2010, at 10:59 AM, David Fotland wrote: >>>>> >>>>>> I'm not asking for bots. I'm asking for my client to connect to your >>>>> server >>>>>> so they can play their games using The Many Faces of Go as their go >>>> board, >>>>>> not using your web interface. This is available now for IGS, and >>>>> customers >>>>>> have asked for it for KGS. Does your protocol allow bots to set up >>>>> matches, >>>>>> challenge players, get a list of players in the room, etc? >>>>>> >>>>>> Regards, >>>>>> >>>>>> David >>>>>> >>>>>>> -----Original Message----- >>>>>>> From: [email protected] [mailto:computer-go- >>>>>>> [email protected]] On Behalf Of Pete Schwamb >>>>>>> Sent: Friday, October 22, 2010 8:27 AM >>>>>>> To: [email protected] >>>>>>> Subject: Re: [Computer-go] OS and scoring >>>>>>> >>>>>>> On Oct 20, 2010, at 6:04 PM, David Fotland wrote: >>>>>>> >>>>>>>> I do like GoShrines design. >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>>> For testing, I'll continue to use kgs, since it >>>>>>>> has more players. I would be interested if you allowed me to build a >>>>>>>> client interface into my commercial program, so people could play >>>>>> directly >>>>>>>> from Many Faces of GO. I have an IGS client built in, but KGS does >>>> not >>>>>>>> allow this. >>>>>>> >>>>>>> I don't see why I would want to prevent anyone from creating a >>>> connector >>>>>>> that would let users of their software run bots on GoShrine. I have >>>> just >>>>>>> published the ruby version on github, so you can see how the protocol >>>>>> works. >>>>>>> The protocol is comprised of JSON messages passed over long-polling >>>>> Bayeux >>>>>>> (http://svn.cometd.com/trunk/bayeux/bayeux.html), which is build on >>>> HTTP. >>>>>>> >>>>>>> I can't guarantee that the protocol will never change (it probably >>>> will), >>>>>>> but I will try to be open in communicating any changes in advance. If >>>>> you >>>>>>> use the goshrine_bot client (which talks to your bot via GTP), then you >>>>>> will >>>>>>> be insulated from most of those changes. >>>>>>> >>>>>>> -Pete >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Computer-go mailing list >>>>>>> [email protected] >>>>>>> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go >>>>>> >>>>>> _______________________________________________ >>>>>> Computer-go mailing list >>>>>> [email protected] >>>>>> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go >>>>> >>>>> _______________________________________________ >>>>> Computer-go mailing list >>>>> [email protected] >>>>> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go >>>> >>>> _______________________________________________ >>>> Computer-go mailing list >>>> [email protected] >>>> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go >>>> >>> _______________________________________________ >>> Computer-go mailing list >>> [email protected] >>> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go >> >> _______________________________________________ >> Computer-go mailing list >> [email protected] >> http://dvandva.org/cgi-bin/mailman/listinfo/computer-go > > _______________________________________________ > Computer-go mailing list > [email protected] > http://dvandva.org/cgi-bin/mailman/listinfo/computer-go _______________________________________________ Computer-go mailing list [email protected] http://dvandva.org/cgi-bin/mailman/listinfo/computer-go
