Skip to main content
The Deno 2 Release Candidate is here
Learn more
class NotificationService
import { NotificationService } from "https://deno.land/x/sptaki@1.2.0/services/NotificationService.d.ts";

Properties

protected
messageQueue: Record<string, any[]>

Methods

add(sessionID: string, message: INotification): void

Add message to queue

get(sessionID: string): any[]

Get message queue for session

getMessageFromQueue(sessionId: string): any[]
getMessageQueue(): Record<string, any[]>
has(sessionID: string): boolean
pop(sessionID: string): any

Pop first message from queue.

updateMessageOnQueue(sessionId: string, value: any[]): void