Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
MikeSamteladze #1
Member since May 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Send Message To Another Client
Hello,
I'm trying to create chat using xmpp, I'm using AG as server ,  server project from samples.
My problem is message sending from one client to another.
every time client sends message it always returns back to him. What am I missing? can anyone help me?
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
when you receive a message on the server then you have to look at the to attribute to find the recipient. When you have the recipient then you have to to lookup the xmpp stream in your dictionary of the receiver and send the message over this stream to the recipient.

Alex
Avatar
MikeSamteladze #3
Member since May 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Thanks Alex, helped a lot. Exactly what I needed
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: MatriX RSS