[英]Should I use node.js + express or Rails + Juggernaut to build a chat room?
I'm trying to build a chatroom in the conventional sense to operate in the browser but with a decent API layer allowing for decent abstraction between the server and the client. 我试图建立一个常规意义上的聊天室,以便在浏览器中进行操作,但要有一个体面的API层,以便在服务器和客户端之间进行体面的抽象。
I want to keep it SIMPLE, but still have room to develop extra functionality going forwards, such as saving transcripts in the database. 我想使它保持简单,但仍然有发展未来更多功能的空间,例如将成绩单保存在数据库中。
You can use faye. 您可以使用faye。
https://github.com/jcoglan/faye https://github.com/jcoglan/faye
There is also a Railscast for this http://railscasts.com/episodes/260-messaging-with-faye http://railscasts.com/episodes/260-messaging-with-faye上也有一个Railscast。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.