Every client needs to have its own server channel. To create a chat, you create one channel per client and a table that contains people chatting. Each time a message is received on the server, the server needs to push it to other chat participants.
-- superco...@gmail.com Co-author of App Engine Java and GWT Development: http://bit.ly/hdTHyB Blog: http://supercobrablogger.blogspot.com/ On Sat, Dec 4, 2010 at 4:25 AM, alon <alon.car...@gmail.com> wrote: > Hey, > After reading the documents im a tad unclear on how the whole process of > channel api works in terms of sharing the messages between clients. > User A opens a channel, i create a channel on datastore for that user and > return the channel id to the javascript part. User opens a socket and > listens. > User B Opens a channel, i check if a channel is created already, if so it > returns the existing channel id (same for user A) and returns it to the > javascript, user opens a socket and listens. > > Is that the correct method? How can i share messages between clients? i saw > that you combine the userid in the channel id returned. > some clarification on that? > How do i create a simple chat between users that share the same chat room? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.