index.js 256 Bytes
Newer Older
Alexander Bazo committed
1 2 3 4 5
/* eslint-env browser */
/* global GazeClient */

var gclient = new GazeClient();
gclient.connect("ws://localhost:8001/gaze");
6 7 8 9 10
gclient.addEventListener("gazeDataAvailable", onGazeDataAvailable);

function onGazeDataAvailable(event) {
	console.log(event);
}