"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapWebSocket = wrapWebSocket;
const _1 = require("../Class/$");
function wrapWebSocket(webSocket, system) {
    const socket = new (class Socket extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['CH'];
        }
        async send(data) {
            webSocket.send(data);
            return;
        }
    })(system);
    return socket;
}
//# sourceMappingURL=Socket.js.map