TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Fastest way to build live chat?

2 点作者 h34t大约 14 年前
I'm working on an app requiring live one-to-one chat amongst users, presence, and other real-time functionality.<p>My app uses rails/backbone.js/MongoDB, and for real-time stuff I've been using PusherApp, but it has limitations--the biggest one being no easy way for my server to know which users are online (to indicate presence).<p>What's the fastest way to get this sort of thing done?<p>I've been looking into learning how to write something in Node.js/socket.io, or use a service like BeaconPush, PubNub, or Kwwika (and keeping my code in ruby w/ EventMachine).

3 条评论

cgbystrom大约 14 年前
(Disclaimer: I'm the project lead on Beaconpush)<p>Beaconpush is a good alternative for doing this. We support user presence and you can use the API to find out what users are connected. You can even log out users from the API.<p>We have a contributed Ruby library (called Dimma) made by one of our users. Don't think it's EventMachine based though. Read more at <a href="https://github.com/Burgestrand/Dimma" rel="nofollow">https://github.com/Burgestrand/Dimma</a><p>node.js with socket.io is also a nice alternative. Played with it somewhat myself and I like it! But hosting it yourself will make you deal with scaling, deploying, uptime and hosting in general. Not exactly stuff you want to focus on when developing things on a tight schedule.<p>So if you're asking me, I'd naturally say Beaconpush (<a href="http://beaconpush.com" rel="nofollow">http://beaconpush.com</a>) :)
评论 #2306441 未加载
mloughran大约 14 年前
Have you tried the presence functionality described on <a href="http://pusherapp.com/docs/presence" rel="nofollow">http://pusherapp.com/docs/presence</a> ? It doesn't cover all use cases, but for the cases it covers, we think it does a pretty great job! Disclaimer: I'm from Pusher :)
h34t大约 14 年前
Also found: Using node.js, backbone.js, socket.io, and redis to make a real time chat app <a href="http://news.ycombinator.com/item?id=2306423" rel="nofollow">http://news.ycombinator.com/item?id=2306423</a>