@cap-js-community/websocket
Version:
WebSocket adapter for CDS
16 lines (12 loc) • 366 B
JavaScript
;
const CloudEventFormat = require("./cloudevent");
const cds = require("@sap/cds");
class CloudEventsFormat extends CloudEventFormat {
constructor(service, origin) {
super(service, origin);
this.name = "cloudevents";
this.identifier = "type";
this.LOG = cds.log(`/websocket/${this.name}`);
}
}
module.exports = CloudEventsFormat;