Ripped websocket server from Kinect project