first rails chat for the web and json communication.