Class UnsecureWebSocketsProtocol

Provides live update functionality following the Solid WebSockets API Spec solid-0.1.

The baseUrl parameter should be the same one that is used to advertise with the Updates-Via header.

Hierarchy

Implements

Constructors

Properties

listeners: Set<WebSocketListener> = ...
logger: Logger = ...
path: string

Methods

  • Checks if the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.

    Parameters

    Returns Promise<void>

    A promise resolving if the input can be handled, rejecting with an Error if not.