UNPKG

@solid/community-server

Version:

Community Solid Server: an open and modular implementation of the Solid specifications

15 lines (14 loc) 548 B
import type { IncomingMessage } from 'node:http'; /** * Generates a WebSocket URL by converting an HTTP(S) URL into a WS(S) URL. * * @param id - The identifier of the channel. Needs to be a URL. */ export declare function generateWebSocketUrl(id: string): string; /** * Parses a {@link IncomingMessage} to extract its path used for authentication. * * @param baseUrl - The base URL of the server. * @param request - The request to parse. */ export declare function parseWebSocketRequest(baseUrl: string, request: IncomingMessage): string;