@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
20 lines (19 loc) • 903 B
TypeScript
import { AsyncHandler } from 'asynchronous-handlers';
import type { Representation } from '../../../http/representation/Representation';
import type { NotificationChannel } from '../NotificationChannel';
import type { StreamingHttpMap } from './StreamingHttpMap';
export interface StreamingHttpEmitterInput {
channel: NotificationChannel;
representation: Representation;
}
/**
* Emits notifications on StreamingHTTPChannel2023 streams.
* Uses the response streams found in the provided map.
* The key should be the identifier of the topic resource.
*/
export declare class StreamingHttp2023Emitter extends AsyncHandler<StreamingHttpEmitterInput> {
private readonly streamMap;
protected readonly logger: import("global-logger-factory").Logger<unknown>;
constructor(streamMap: StreamingHttpMap);
handle({ channel, representation }: StreamingHttpEmitterInput): Promise<void>;
}