UNPKG

aes70

Version:

A controller library for the AES70 protocol.

24 lines (21 loc) 555 B
import { WebSocketConnectionBase } from './websocket_connection_base.js'; /** * Connection which implements OCP.1 with WebSocket transport. */ export class WebSocketConnection extends WebSocketConnectionBase { /** * Connect to the given endpoint. * * @param {object} options * @param {String} options.url * Endpoint WebSocket url. * @returns {Promise<WebSocketConnection>} * The connection. */ static connect(options) { return super.connect(WebSocket, options); } _now() { return performance.now(); } }