From: Norman R. <no...@ra...> - 2009-03-26 13:03:40
|
the sample I gave was for events (xep-0022), here's the sample for chatstates (xep-0085): send: as before: m = Message(typ='chat',frm = fromAddress, to=toAddress,body=messageBody) add this: m.setTag('active',namespace=NS_CHATSTATES) detect: composing = messageEvent.getTag('composing',namespace=NS_CHATSTATES) hope that helps On Thu, Mar 26, 2009 at 2:44 PM, Vikas Singhal <vik...@gm...>wrote: > And how will I do that. please guide! > > 2009/3/26 Norman Rasmussen <no...@ra...> > >> sometimes clients will only generate the events when they detect that you >> support them, so often you have to have sent at least one message with >> 'active' to enable it. >> >> >> 2009/3/26 Vikas Singhal <vik...@gm...> >> >> I am able to see the events (composing, paused etc... ) in my logs from >>> the pidgin client but for the gtalk users its not appearing. any clues? >>> >>> >>> On Thu, Mar 26, 2009 at 4:30 PM, Yann Leboulanger <as...@la...>wrote: >>> >>>> Vikas Singhal a écrit : >>>> > I can only see 'chat' and 'error' in my message call back function. I >>>> am >>>> > not seeing any "composing" or "paused" state. >>>> > >>>> > Any idea why? >>>> > >>>> > I registered the message handler as >>>> > : connection.RegisterHandler('message', messageCB) >>>> >>>> as I already told you, look at XEP-0085: >>>> http://www.xmpp.org/extensions/xep-0085.html >>>> >>>> -- >>>> Yann >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Xmpppy-devel mailing list >>>> Xmp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Xmpppy-devel mailing list >>> Xmp...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >>> >>> >> >> >> -- >> - Norman Rasmussen >> - Email: no...@ra... >> - Home page: http://norman.rasmussen.co.za/ >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> >> > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |