The incredible XMPP - BOSH - Strophe - Multi-User Chat! :-D
April 15 - 2009My next "XMPP Testing" -step is finished. I just ended the first version of a XMPP group chat. If you cannot wait any longer to start chatting, click HERE!
The chat I did is a Multi-User Chat based on XEP-0045. The chat room is created on a Openfire XMPP server running at xmpp.lobstermonster.org. When user logs in to the chat, his/hers browser will connect to the XMPP server using BOSH 1.6 (XEP-0206). A ready made open source library called Strophe is used to handle the BOSH connection.
The chat room has the the basic chat room features plus it changes your presence globally away when you have not chat for one minute. The "away" -timeout is set that short on purpose to see it working. Eventually if you are idle for approximately 15 minutes, you will be kicked out of the chat room.
I used this stuff to set up the chat:
Like everything else in LobsterMonster.org, this is not the "best possible implementation" how things could and should be done. I know that there are plenty of web-chat-stuff available, I just wanted to see how fast and easy such a chat room is able to be created. It took me 2 hours to build this up, so it's pretty straight forward.
I have not tested how the chat works on other browsers than Firefox 3.1b and latest Opera.
If you are interested to make the chatroom better, don't hesitate to contact me. I would be interested to make a simple open source project out of this.
Now! Let's chat!
List of all post on LobsterMonster.org
- 2010-02-20: XMPP, XFS, buddyloud, FOSDEM
- 2009-10-20: Devox 2009
- 2009-10-20: Strophe + F5
- 2009-10-07: RSS feeds to PubSub nodes
- 2009-08-28: Breaking News -service
- 2009-08-02: Geode-Xmpp-GoogleMap example
- 2009-07-19: Lobstermonster's Buddycloud tweeds
- 2009-07-15: Buddycloud Weather Service
- 2009-06-15: Read and comment BBC Breaking news real time in Lobstermonster Lounge
- 2009-05-17: Geolocation using Firefox's Geode
- 2009-05-17: Geolocation using buddycloud
- 2009-05-08: Simple Weather Forecast Bot
- 2009-05-03: Possibility to ping anonymous web users using my IM client
- 2009-05-01: Online status notified in both ways between Tuomas and the Guest
- 2009-04-30: Contact pages updated
- 2009-04-29: Receive BBC World news as XMPP Message (using the great PubSub feature)!
- 2009-04-19: Example how to send IQ commands to external XMPP server using XEP-0244: IO Data
- 2009-04-19: So how is most of the stuff done on Lobstermonster.org
- 2009-04-18: My mood now on my contact pages.
- 2009-04-15: The incredible XMPP - BOSH - Strophe - Multi-User Chat! :-D
- 2009-04-15: Contact pages ready - and implemented of course with XMPP
- 2009-04-14: Baby got more memory
- 2009-04-13: What have I done and why?