Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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??
  #2 (permalink)  
Old January 17th, 2011, 01:57 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

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.
  #3 (permalink)  
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>

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:22 AM.

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