2024-08-05 20:33:00 +10:00
|
|
|
import { IWsNotificationEvent } from "@spt/models/eft/ws/IWsNotificationEvent";
|
2023-06-11 15:10:34 +10:00
|
|
|
export declare class NotificationService {
|
|
|
|
protected messageQueue: Record<string, any[]>;
|
|
|
|
getMessageQueue(): Record<string, any[]>;
|
|
|
|
getMessageFromQueue(sessionId: string): any[];
|
|
|
|
updateMessageOnQueue(sessionId: string, value: any[]): void;
|
|
|
|
has(sessionID: string): boolean;
|
|
|
|
/**
|
|
|
|
* Pop first message from queue.
|
|
|
|
*/
|
|
|
|
pop(sessionID: string): any;
|
|
|
|
/**
|
|
|
|
* Add message to queue
|
|
|
|
*/
|
2024-08-05 20:33:00 +10:00
|
|
|
add(sessionID: string, message: IWsNotificationEvent): void;
|
2023-06-11 15:10:34 +10:00
|
|
|
/**
|
|
|
|
* Get message queue for session
|
|
|
|
* @param sessionID
|
|
|
|
*/
|
|
|
|
get(sessionID: string): any[];
|
|
|
|
}
|