@skyway-sdk/analytics-client
Version:
The official Next Generation JavaScript SDK for SkyWay
20 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientEvent = void 0;
const uuid_1 = require("uuid");
class ClientEvent {
constructor(type, payload) {
this.id = (0, uuid_1.v4)();
this.type = type;
this.payload = payload;
}
toJSON() {
return {
id: this.id,
type: this.type,
payload: this.payload,
};
}
}
exports.ClientEvent = ClientEvent;
//# sourceMappingURL=clientEvent.js.map