@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
18 lines (17 loc) • 957 B
TypeScript
import type { WebSocketHandlerInput } from '../../WebSocketHandler';
import { WebSocketHandler } from '../../WebSocketHandler';
import type { NotificationChannelStorage } from '../NotificationChannelStorage';
import type { WebSocket2023Handler } from './WebSocket2023Handler';
/**
* Listens for WebSocket connections and verifies whether they are valid WebSocketChannel2023 connections,
* in which case its {@link WebSocket2023Handler} will be alerted.
*/
export declare class WebSocket2023Listener extends WebSocketHandler {
protected readonly logger: import("global-logger-factory").Logger<unknown>;
private readonly storage;
private readonly handler;
private readonly baseUrl;
constructor(storage: NotificationChannelStorage, handler: WebSocket2023Handler, baseUrl: string);
canHandle({ upgradeRequest }: WebSocketHandlerInput): Promise<void>;
handle({ webSocket, upgradeRequest }: WebSocketHandlerInput): Promise<void>;
}