feat: Warn about UnsecureWebSocketsProtocol.

This commit is contained in:
Ruben Verborgh
2022-03-30 14:11:46 +02:00
committed by Joachim Van Herwegen
parent 238570b3d2
commit 5c218193ab

View File

@@ -123,6 +123,10 @@ export class UnsecureWebSocketsProtocol extends WebSocketHandler {
public constructor(source: EventEmitter) {
super();
this.logger.warn('The chosen configuration includes Solid WebSockets API 0.1, which is unauthenticated.');
this.logger.warn('This component will be removed from default configurations in future versions.');
source.on('changed', (changed: ResourceIdentifier): void => this.onResourceChanged(changed));
}