Client for 1999.io
Important note: There's a more recent version of this app as part of the 1999-project repository. I'm leaving this here as documentation. DW 4/17/2016.
1999.io is my new liveblogging project. It's the software I use to edit Scripting News. When you reply to a post on my blog you are using 1999.io.
The server is running a recent version of nodeStorage. It provides simple storage services for browser-based JavaScript apps, using Twitter-hosted identity.
nodeStorage has a WebSockets interface, which we use in this app to get a stream of updates from the server.
I wrote a blog post that explains why I provided this app, and an overview of how to test it.
Demo app
The demo app is a copy of client.html above.
Details
Every time the server updates you get a message.
The first line of the message has the world update followed by a \r. This makes it possible for other kinds of data to be returned at some time in the future.
Following the first line is a JSON structure containing all the information about a top-level message.
Here's an example of such a structure. It's the JSON source for this post.
You can view the JSON structure for any post.
Updates
v0.44 -- rewritten to work with new WebSockets code in nodeStorage, not yet released.
v0.45 -- use the new 1999.io server, node2.1999.io.