/* eslint-env browser */ import WebSocketClient from "./WebSocketClient.js"; class GazeClient { connect(url) { this.url = url; this.client = new WebSocketClient(url, this.onOpen.bind(this)); } onOpen() { this.client.send("hello server"); } } window.GazeClient = GazeClient;