Instead of writing your own, you may be able to build on the Juggernaut library. This is an EventMachine framework which has an example that does precisely this sort of thing.
Juggernaut only supports flash with xml sockets and rails2. Do you have any suggestions for those wanting to use websockets and rails3? – user341458 Jan 23 at 6:04 I've had some success using the em-websocket library for EventMachine but you will have to layer in your own methods for dispatching calls to clients.
– tadman Jan 24 at 17:07.
If the messages are stored within the database, then query it for the users that have written a message in the last 5 minutes. That way if they idle for more than five minutes they're automatically considered out of the chatroom.
Pong! Method, that could also be applied here :D.
I am building a chat system using EventMachine and ruby on rails. It's for learning purpose. This is how client is connecting to server.
However the problem is that I can't get the list of people who are currently chatting in the room because as I shown above, client is constantly opening and closing the connection. An alternative plan is to run an EventMachine client for each connected user. I am planning to store the client connection in session for each user.
In this way I will be using the same question for each user.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.