UNPKG

@skyway-sdk/analytics-client

Version:

The official Next Generation JavaScript SDK for SkyWay

19 lines 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClientEvent = void 0; class ClientEvent { constructor(type, payload) { this.id = globalThis.crypto.randomUUID(); this.type = type; this.payload = payload; } toJSON() { return { id: this.id, type: this.type, payload: this.payload, }; } } exports.ClientEvent = ClientEvent; //# sourceMappingURL=clientEvent.js.map