laravel-echo
Version:
Laravel Echo library for beautiful Pusher and Socket.IO integration
39 lines (34 loc) • 890 B
text/typescript
import { NullPrivateChannel } from "./null-private-channel";
import type { PresenceChannel } from "./presence-channel";
/**
* This class represents a null presence channel.
*/
export class NullPresenceChannel
extends NullPrivateChannel
implements PresenceChannel
{
/**
* Register a callback to be called anytime the member list changes.
*/
here(_callback: CallableFunction): this {
return this;
}
/**
* Listen for someone joining the channel.
*/
joining(_callback: CallableFunction): this {
return this;
}
/**
* Send a whisper event to other clients in the channel.
*/
whisper(_eventName: string, _data: Record<any, any>): this {
return this;
}
/**
* Listen for someone leaving the channel.
*/
leaving(_callback: CallableFunction): this {
return this;
}
}