ps2census
Version:
Client to connect to the PS2 Event Stream websocket.
14 lines • 452 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PS2Event = void 0;
const formatters_1 = require("../../../utils/formatters");
class PS2Event {
constructor(client, raw) {
this.client = client;
this.raw = raw;
Object.assign(this, raw, { timestamp: (0, formatters_1.unixToDate)(raw.timestamp) });
}
}
exports.PS2Event = PS2Event;
PS2Event.DATA = 1;
//# sourceMappingURL=ps2.event.js.map