import { PeerDataChannel } from "../../webrtc/client/peer-data-channel.js";
export class ChannelMock extends PeerDataChannel {
    constructor() {
        super('write');
        ChannelMock.instances.add(this);
    }
    send(type, data) {
        for (let channel of ChannelMock.instances) {
            if (channel === this)
                continue;
            channel.emit(type, data);
        }
    }
}
ChannelMock.instances = new Set();
//# sourceMappingURL=channel.mock.js.map