@soketi/soketi-js
Version:
Laravel Echo extension that works with Soketi, a Laravel-ready WebSockets service.
16 lines (15 loc) • 520 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocketIoPrivateChannel = void 0;
const socketio_channel_1 = require("./socketio-channel");
class SocketIoPrivateChannel extends socketio_channel_1.SocketIoChannel {
whisper(eventName, data) {
this.socket.emit('client event', {
channel: this.name,
event: `client-${eventName}`,
data: data,
});
return this;
}
}
exports.SocketIoPrivateChannel = SocketIoPrivateChannel;