Skip to content

Commit

Permalink
feat: Warn about UnsecureWebSocketsProtocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Mar 31, 2022
1 parent aec080c commit 01ec5c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/http/UnsecureWebSocketsProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 01ec5c7

Please sign in to comment.