canvas 1.0.1

2D Canvas API that streams all drawing commands to a connected browser.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate websocket;

use std;
use std::net::SocketAddr;
use std::thread;
use websocket::sync::Server;
use websocket::OwnedMessage;

use std::sync::mpsc::Sender;
use std::sync::mpsc::Receiver;


pub fn start() -> (SocketAddr, Sender<Action>) {

    return (addr, tx);
}