Initial release for SPT 3.9
This commit is contained in:
21
types/services/NotificationService.d.ts
vendored
Normal file
21
types/services/NotificationService.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { IWsNotificationEvent } from "@spt/models/eft/ws/IWsNotificationEvent";
|
||||
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
|
||||
*/
|
||||
add(sessionID: string, message: IWsNotificationEvent): void;
|
||||
/**
|
||||
* Get message queue for session
|
||||
* @param sessionID
|
||||
*/
|
||||
get(sessionID: string): any[];
|
||||
}
|
||||
Reference in New Issue
Block a user