Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Hoss #1
Member since Apr 2008 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Receive all incoming messages
Again, sorry if these are noob questions, I couldn't find the answer searching. :)

How can I get all incoming messages without specifying specific people? This code I got from the example projects requires me to specify a specific account to listen for, but I want to get all of them regardless who from, is this possible?

  xmpp.MessageGrabber.Add(new Jid("account@gmail.com"),
  new BareJidComparer(),
  new MessageCB(MessageCallBack),
  null);

TIA!!
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
All messages arrive in the OnMessage event.

The message grabber is handy if you need filtering. E.g. you open a new chat window For each chat/jid. Then you can setup a MessageGrabber directly in the window. In this case you don't have to filter them in the OnMessage event, and you don't have to find the correct chat window and pass the message.
Software Developer
AG-Software
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS