/* Copyright (c), CKSource Holding sp. z o.o. All rights reserved. */ import SessionCollection from './sessioncollection'; import type { IWebSocketGateway } from '../websocketgateway/websocketgateway'; /** * Abstracts requesting connected Sessions for services. Should not be used directly */ export default class Sessions { /** * Returns a Promise that resolves with read-only observable collection with EndUsers Sessions for given service instance. * * @example * ```ts * const sessions = await Sessions.getConnectedSessions( wsGateway, 'some-uuid', 'session-type' ); * ``` */ static getConnectedSessions(wsGateway: IWebSocketGateway, id: string, sessionType: number): Promise; }