@salesforce/core
    Preparing search index...

    Type Alias StreamingClientIfc

    Inner streaming client interface. This implements the Cometd behavior. Also allows for mocking the functional behavior.

    type StreamingClientIfc = {
        getCometClient: (url: string) => CometClient;
        setLogger: (logLine: (message: string) => void) => void;
    }
    Index
    getCometClient: (url: string) => CometClient

    Returns a comet client implementation.

    Type Declaration

      • (url: string): CometClient
      • Parameters

        • url: string

          The target url of the streaming service endpoint.

        Returns CometClient

    setLogger: (logLine: (message: string) => void) => void

    Sets the logger function for the CometClient.

    Type Declaration

      • (logLine: (message: string) => void): void
      • Parameters

        • logLine: (message: string) => void

          A log message passed to the the assigned function.

        Returns void