Wrox Programmer Forums
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 January 15th, 2011, 03:29 AM
Authorized User
Join Date: Jan 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default multi user chat

Anyone successful in getting the multi user chat sample to work.

Nothing happens when i run the sample. because, the code assumes that there already a room available, and tries to connect the user to it.

but the first time the code is run there obviously is no room available, and i think the code fails because it tries to connect the user to an unavailable room. the login screen does not have the option to create new room.

the book explains how a request is sent to create new room, i tries doing that and nothing happens..

this is frustrating... if the samples in the book don't work how can one use it to create live apps??
Old January 17th, 2011, 01:57 PM
Wrox Author
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts

Different XMPP servers have different rules about who can create rooms. I made the assumption that most servers allow public creation of rooms, which has been the case in my own experience.

In those cases, creating a room is simply the act of joining a room that doesn't yet exist.

It's possible to configure a server to not allow such room creation. They may require the room to be configured or for only certain users to create rooms.

There are two ways to diagnose this:

1) Watch the traffic from the server, and look at what error you are getting instead of the expected response.

2) Attempt to use a real XMPP client to create a room on the same server and see if it succeeds. Note that in the case that a room requires configuration, the client may do this silently for you.

I didn't put all this into the sample apps in order to keep them simple.

Let me know what you find, and I'll do what I can to help you figure it out.
Old January 17th, 2011, 08:12 PM
Authorized User
Join Date: Jan 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks a lot for the reply. After searching ejabberd configuration extensively i found how to configure the server for multi user chat.

the sample works now. it all sounds very simple now, but when i was runnning the sample it had no clue about the config changes.

it will be helpful if you can mention about ejabberd muc configuration in your future edition of the book.

and by default the room name should be <roomname>@conference.<domainname> which i had no idea about, i kept trying <roonname>@<domainname>

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Multi User Help Delvo Pro VB 6 5 February 26th, 2008 02:44 PM
ado multi user jolzy VB Databases Basics 2 October 20th, 2004 09:04 AM
How to program a multi-user app James Diamond Classic ASP Databases 1 February 2nd, 2004 11:48 AM
How do you make a database Multi-User mikef Access VBA 3 July 3rd, 2003 10:00 PM
Application multi-user password. mosart VB Databases Basics 2 June 16th, 2003 02:00 AM

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