szimek / xmpp-chat

Facebook chat clone written using Strophe.js and Ember.js
168 stars 52 forks source link

Group chats #16

Open BayMarcus opened 11 years ago

BayMarcus commented 11 years ago

This is a support request, not sure how to post them in here.

Is this support for group chats? and how can we do that?

heshanlk commented 11 years ago

Any group chat support?

szimek commented 11 years ago

Not at the moment. There's ticket to use multi user chat for 1-to-1 chat and it might be the first step to implement group chats.

heshanlk commented 11 years ago

I'm trying to understand the code and do some contribution on this, do you have any idea where should I start looking at?

szimek commented 11 years ago

The first step would probably be to figure out which XMPP extension to use :) I guess it's http://xmpp.org/extensions/xep-0045.html. I haven't read it yet, so I'm not really sure how it works, but I guess that instead of sending a message directly to a user, it's sent to some "virtual" JID representing a room.

This app was written pretty long time ago, when Ember was still SproutCore 2, so while I updated the code to work with Ember 1.0 (RC 1) it's probably quite outdated. I'm thinking about rewriting it completely in Ember to be more like Campfire (but still using XMPP), but I really can't tell when it's going to happen.

heshanlk commented 11 years ago

Thanks for the replay, I've used this many times https://code.google.com/p/xmpphp/ and looks like they really simple integration in to the group chat as you said using a virtual JID. I'll have a look in to that.

What do you mean by the "Ember was still SproutCore 2", you mean for you chat app your using an older version and a newer version might not work out of the box?

szimek commented 11 years ago

It's currently using Ember 1.0 RC 1 and the latest version is 1.0 RC2, so it's not using very outdated version and updating it to RC2 probably won't require almost any changes.

If you check dates of commits, you'll notice that the whole app was written almost exactly 2 years ago. Back then Ember was called SproutCore 2 (here's a bit more info about it - http://yehudakatz.com/2011/12/12/amber-js-formerly-sproutcore-2-0-is-now-ember-js). Since then I haven't actually changed the code itself almost at all, only stuff that was necessary to make it work with new versions of Ember.