strophe js receiving repeat messages on callback

603 views
Skip to first unread message

Rodney

unread,
Jul 6, 2011, 8:07:44 PM7/6/11
to Strophe
Hi All, on connect I add a handler (see below) to register for
messages. From another client I send a message, but for some reason
my onMessage keeps getting called repeatedly with that same message.
Do I need to send a message saying I received the message ok? How do
I get it to stop sending me the same message over and over?

connection.addHandler(onMessage, null, 'message', null, null, null,
{matchBare: true} );
connection.send($pres());

Any help is appreciated.

Thanks,
Rodney

Christopher Zorn

unread,
Jul 7, 2011, 1:26:00 AM7/7/11
to str...@googlegroups.com
You should not get the same message over and over again. If possible, a log would help with determining the problem. 


--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To post to this group, send email to str...@googlegroups.com.
To unsubscribe from this group, send email to strophe+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/strophe?hl=en.


Rodney

unread,
Jul 7, 2011, 7:25:37 PM7/7/11
to Strophe
I debugged it... sorry about that. It was a problem on the sending
end.

On Jul 6, 10:26 pm, Christopher Zorn <christopher.z...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages