Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2010, 01:39 PM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Groupie - How to create/join a room

Hello and thanks again for this great book :)

I am trying to run the Groupie application against my OpenFire server,
installed on my localhost.

I have followed this post on how to configure apache to redirect calls to OpenFire:
http://www.malcollier.com/?p=14

and it works fine (I am testing stansas with Peek).

I have a problem creating or joining a room. The OpenFire has the MUC service enabled, and I can create rooms through the admin panel.

I have created a room called "room1".

Using Peek, I send this stanza to join this room (my OpenFire server address is "yaron-pc", and the MUC service address is "conference.yaron-pc"

The stanza I send:

"
<presence to="room1@conference.yaron-pc/mynick" from="admin@yaron-pc">
<x xmlns="http://jabber.org/protocol/muc" />
</presence>
"

I am not getting any reply. I have also tried using my full JID in the "from" field. Before I do this, I authenticate myself on the server, and send a regular presence stanza to the server (I apear as online on the admin panel sessions list)

It seems that nothing happens. In the admin panel, the list of Room Occupants is empty.

Thank you in advance

Yaron
 
Old December 2nd, 2010, 09:03 PM
Registered User
 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a similar problem but i think i have yours solved.

In Openfire, hit Group Chat -> Create New Room

let's say your roomID is "public" and room name is "public"
leave the password field blank
fill in the rest however you would like

when you go to login, use your JID like normal
"user@domain"
your normal password for that username as dictated by openfire
"password"
for chatroom you put in (for this case where you made the room known as "public")
"public@conference.serverdomain"
and the nick can be anything

you should be able to see yourself in the admin panel.

However, the problem I have is that nothing happens in the actual chatroom!

Openfire says i'm in the room and that other people are in the room, but groupie does not retrieve and display the messages. I have logged into my account on pidgin and joined the chatroom through pidgin. When i type messages in groupie, they show up in the chatroom on pidgin, so I know that the server and the room setup is correct. There is something amiss in the code that I haven't pinpointed yet. Good luck.
 
Old December 4th, 2010, 01:14 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by yaronfa View Post
The stanza I send:

"
<presence to="room1@conference.yaron-pc/mynick" from="admin@yaron-pc">
<x xmlns="http://jabber.org/protocol/muc" />
</presence>
"
Do not set the 'from' attribute. I included it in the examples in the book so that people would understand who the stanzas are sent from. You'll notice in the book's code I never set this attribute. The server will stamp your stanza with the correct from, and it will ignore or reject anything you set there in most cases.

If that isn't the problem, you might try sending a disco#info query to conference.yaron-pc to see if it responds. If that fails, try sending a disco#info query to yaron-pc. It should list the conference service in a disco#items response as well.
 
Old December 4th, 2010, 01:15 PM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Quote:
Originally Posted by cycokris View Post
Openfire says i'm in the room and that other people are in the room, but groupie does not retrieve and display the messages. I have logged into my account on pidgin and joined the chatroom through pidgin. When i type messages in groupie, they show up in the chatroom on pidgin, so I know that the server and the room setup is correct. There is something amiss in the code that I haven't pinpointed yet. Good luck.
Please try the latest version of the code at https://github.com/metajack/profxmpp

It's possible this bug has been fixed. If that doesn't help, let me know, and I'll try and track down what's going wrong.
 
Old December 14th, 2010, 05:58 PM
Registered User
 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you that worked.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chat Room aliusmankhan ASP.NET 2.0 Professional 2 August 23rd, 2008 07:51 AM
How to Create Join Script for a Query ....... ZArrinPour SQL Server 2000 0 June 25th, 2006 11:48 AM
Oracle 8i inner join and left join problem puteri_84 Oracle 2 August 19th, 2004 07:14 AM
Chat Room Creation HELP! nvillare Classic ASP Basics 2 August 28th, 2003 06:46 AM
Chat Room Trouble nvillare Classic ASP Basics 0 July 11th, 2003 03:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.