I m writing a chat server application where the users can exchange messages with one of his friends. When the user connects i store his connection on an class variable hash:
@@connections[:user_id] = conn
当有人向用户发出电文时,我想到他与散射线上的联系,并通过它发出电文。 有时,这些联系只会使客户死亡,而且不会援引 on。