"use strict";
/// <reference types="miniprogram-api-typings" />
Object.defineProperty(exports, "__esModule", { value: true });
exports.IO = void 0;
const io = require('weapp.socket.io/lib/weapp.socket.io');
class IO {
    constructor() {
        this.instance = io(`http://localhost:${KARMA_PORT}`);
    }
    on(data, callback) {
        this.instance.on(data, (...args) => {
            callback(...args);
        });
    }
    emit(type, data) {
        this.instance.emit(type, data);
    }
}
exports.IO = IO;
//# sourceMappingURL=index.js.map