开发者

Should I use node.js + express or Rails + Juggernaut to build a chat room?

开发者 https://www.devze.com 2023-04-04 14:42 出处:网络
I\'m trying to build a chatroom in the conventional sense to operate in the browser but with a decent API layer allo开发者_StackOverflowwing for decent abstraction between the server and the client.

I'm trying to build a chatroom in the conventional sense to operate in the browser but with a decent API layer allo开发者_StackOverflowwing for decent abstraction between the server and the client.

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.

https://github.com/jcoglan/faye

There is also a Railscast for this http://railscasts.com/episodes/260-messaging-with-faye


You could consider leveraging Faye which is built on top of Node.js and I believe has WebSockets support too. Possibly route all transcripts with Redis storage.

0

精彩评论

暂无评论...
验证码 换一张
取 消