News for hackers. Stuff that matters.
Re:Show HN: Rockets – Reddit and websockets by onli on Saturday August 01, 2015 @08:05AM (#9986739)
That seems to work really well, thanks for your work. I might use it.

One thing I'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've returned them, and that is why they are not defined in the code?

I'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'm leaving the comment, maybe you want to add some documentation/links to the proper Api documentation in that direction.

Re:Show HN: Rockets – Reddit and websockets by rtheunissen on Saturday August 01, 2015 @08:24AM (#9986785)
> maybe you want to add some documentation/links to the proper Api documentation

That's an excellent idea, added in http://git.io/vOOKi.

> how to get a comments url

A comment permalink is a strange combination of the comment itself and its parent post. You can build a comment permalink using the following template:

  reddit.com/r/{subreddit}/comments/{link_id[3:]}/_/{id}
Re:Show HN: Rockets – Reddit and websockets by onli on Saturday August 01, 2015 @08:33AM (#9986806)
Thanks a lot! I discovered link_url and that would have worked for the moment, but the real comment permalink would have taken a lot of time to find out.

The link to the json-wiki page is perfect as well, that is exactly what I searched and did not find. Thanks again.