/* eslint-env browser */ /* global GazeClient */ var gclient = new GazeClient(); gclient.connect("ws://localhost:8001/gaze");
gclient.addEventListener("connectionopened", onConnected);
gclient.addEventListener("dataavailable", onGazeDataAvailable);
gclient.addEventListener("connectionclosed", onDisconnected); function onConnected(event) { console.log(event); }
function onGazeDataAvailable(event) { console.log(event);
} function onDisconnected(event) { console.log(event);
}