TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Rockets – Reddit and websockets

98 pointsby rtheunissenalmost 10 years ago

7 comments

fasteoalmost 10 years ago
The animated logo immediately caught my attention. Kudos to Ken, the illustrator [1]. Great portfolio.<p>[1] <a href="http:&#x2F;&#x2F;cargocollective.com&#x2F;kensamonte&#x2F;" rel="nofollow">http:&#x2F;&#x2F;cargocollective.com&#x2F;kensamonte&#x2F;</a>
评论 #9986473 未加载
chrissnellalmost 10 years ago
Interesting. It relies on a central service that&#x27;s polling Reddit, though. Why not a distributed, peer-to-peer system instead? By combining the power of hundreds of individual nodes polling the site, you could have fast visibility of new content without being too obvious to the site being monitored.
评论 #9986338 未加载
评论 #9986332 未加载
评论 #9986314 未加载
onlialmost 10 years ago
That seems to work really well, thanks for your work. I might use it.<p>One thing I&#x27;m struggling with is the data model, of what exactly is returned on an event. I see that right that rockets is sending data like the API would&#x27;ve returned them, and that is why they are not defined in the code?<p>I&#x27;m new to Reddits Api and was wondering how to get a comments url. Just realizing that I should just echo the full object and find keys that way. I&#x27;m leaving the comment, maybe you want to add some documentation&#x2F;links to the proper Api documentation in that direction.
评论 #9986785 未加载
julienalmost 10 years ago
Brilliant! Do you poll Reddit for new messages?
评论 #9986336 未加载
StavrosKalmost 10 years ago
I wanted this for a script I was thinking of writing, nice!<p>Unfortunately, I&#x27;m a total convenience victim these days, and any node-based service is very unlikely to enter my stack. Python is okay, Go is best. I just love only deploying a single binary. I think it speaks volumes that I like writing Python but like deploying Go.
评论 #9986611 未加载
评论 #9986686 未加载
fiatjafalmost 10 years ago
Websockets? That means the Reddit bot will be listening from a webpage? Is that how Reddit bots operate? I&#x27;m confused, I thought Reddit bots would be a normal computer process, listening&#x2F;polling for content and making HTTP calls to the API, nothing from a web browser. Someone please explain it to me!
评论 #9989698 未加载
rgbrgbalmost 10 years ago
So what&#x27;s Reddit&#x27;s take on something like this?
评论 #9988812 未加载