Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scripting/1999client
A client app for 1999.io, in JavaScript, using WebSockets.
https://github.com/scripting/1999client
Last synced: 3 months ago
JSON representation
A client app for 1999.io, in JavaScript, using WebSockets.
- Host: GitHub
- URL: https://github.com/scripting/1999client
- Owner: scripting
- License: mit
- Created: 2015-11-12T17:29:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T16:16:57.000Z (almost 9 years ago)
- Last Synced: 2024-08-01T12:34:40.485Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - scripting/1999client - A client app for 1999.io, in JavaScript, using WebSockets. (others)
README
#### 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.