Sending messages to webbased chat solution (but not to jabber native client)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2015 08:13 PM
Hi,
We are connecting to jabber server through CAXL libraries to simulate chat communication. Here, I have a requirement to send messages only to web based chat application which is established through CAXL but not to jabber native client. Let us know whether we can route the messages only to web based chat application.
Thanks,
Jayasree
- Labels:
-
Jabber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2015 07:03 AM
Here's how to do it: When you establish your web client, you specify a resource. For example, "webclient":
client = new jabberwerx.Client("webclient");
Let's assume you're logged into the web client as joe@youdomain.com. When someone wants to send a message to you at the web client only, they would send it to joe@yourdomain.com/webclient.
Not all Jabber applications let you address a message to a specific resource, but if you're using Jabber SDK (CAXL) to send the messages, it's easy.
In general, this is how most other applications work. You send a message to joe@domain.com, which he receives on all his Jabber clients. Joe responds from the web client as joe@domain.com/webclient. Now that you've started a conversation, your client automatically continues the conversation with joe@domain.com/webclient and the rest of the conversation only shows up on that client.
But if you want to START the conversation with the web client only, then you'd need to do what I described above -- address your first message to joe@domain.com/webclient.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2015 10:17 AM
Thanks for your reply Nicholas. I tried with CAXL API & jqchatdemo by creating client with 'webclient' argument. Now, I tried with two users who are logged in both web console and jabber native client. But messages going to both web chat console and jabber native client.
Can you please correct me if I am doing anything wrong?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2015 09:44 AM
Hi Nicholas,
Appending resource name while invoking chat communication is working fine but only when sender has permanent contact subscription (roster contact) with receiver. It is not working when sender is temporary contact subscription (quick contact) with receiver.
Can you please guide me how to proceed with the same?
Thanks,
Jayasree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2015 07:05 AM
I wasn't aware of that limitation with quick contacts. I'll have to play with it to see what I can discover.
