vahidhedayati / grails-wschat-plugin

Grails websocket chat Plugin provides a multi-chat room add-on to an existing grails based site. provides: Private Messaging/WebRTC/Offline PM + room booking/reservations. Websocket TicTactoe. Add Live Chat to your Grails application
http://grails.org/plugin/wschat
Apache License 2.0
22 stars 10 forks source link

Multiple room at the same time #7

Closed ghost closed 8 years ago

ghost commented 9 years ago

Hi, Is there a way to have an user logged into multiple rooms at the same time?

When I try, the following message appears: "${username} is already loggged in elsewhere, action denied".

Thank you!

vahidhedayati commented 9 years ago

Hi OldLions

Not at the moment, something that has been requested in the past.

Know what needs to be done, just not had the time to implement. Will take a look soon and update this when done.

vahidhedayati commented 9 years ago

This is now added to 1.20 for Grails 2.X and 3.0.3 for grails 3

Some basic tests which appears to work.

In short a user can log in multiple times now and they can only go to a room their not already in. If they attempt to switch rooms to a room their already in - again same rule applies they will be rejected access to that room.

No idea what else has broken due to this update. A lot of basic features tested and appeared to work. PM's sent from one user to a user logged in to multiple rooms appeared to hit the right window.

I have a feeling Friend PM may be broken in certain circumstances that Friend and user are not in the same room.

Needs further testing.

Let me know if that works for you and if any issues again let me know

vahidhedayati commented 8 years ago

This has been enabled ages ago will close it