"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setBroadcast = setBroadcast;
exports.broadcastFlowEvent = broadcastFlowEvent;
let _broadcast = null;
function setBroadcast(fn) {
    _broadcast = fn;
}
function broadcastFlowEvent(projectId, event, payload) {
    if (!_broadcast)
        return;
    _broadcast(projectId, { type: event, ...payload });
}
//# sourceMappingURL=track-flow-ws.js.map