Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tjmw/js-d3-websockets-experiment

D3/Websockets Experiment
https://github.com/tjmw/js-d3-websockets-experiment

Last synced: about 2 months ago
JSON representation

D3/Websockets Experiment

Awesome Lists containing this project

README

        

# D3/Websockets Experiment

## Overview

Just a learning experiment cobbled from pieces of
[this excellent websockets tutorial](http://martinsikora.com/nodejs-and-websocket-simple-chat-tutorial) and [these excellent d3 tutorials](https://github.com/mbostock/d3/wiki/Tutorials).

## Dependencies

$ npm install websocket

## Setup
Update this line of index.html to wherever the websocket server is running:

var wsServer = 'ws://localhost:1337/';

## Running

Websocket server:

$ node server/websocket-server.js

Client:

$ python -m SimpleHTTPServer # or whatever...