@localazy/strapi-plugin
Version:
The official Strapi Plugin by Localazy.
15 lines (14 loc) • 583 B
TypeScript
import { EventType } from 'src/constants/events';
import { ChannelType } from '../../constants/channels';
import { Server as SocketIOServer } from 'socket.io';
export type JobNotificationServiceType = InstanceType<typeof JobNotificationService>;
declare class JobNotificationService {
private _strapio;
private _channel;
private _jobStreamIdentifier;
constructor(strapio: SocketIOServer);
setChannel(channel: ChannelType): void;
getStreamIdentifier(): string;
emit(event: EventType, data: unknown): Promise<void>;
}
export default JobNotificationService;