index.js 299 Bytes
Newer Older
Alexander Bazo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* 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;