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

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

Type declaration

  • getCometClient: ((url: string) => CometClient)

    Returns a comet client implementation.

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

    Sets the logger function for the CometClient.

      • (logLine): void
      • Parameters

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

          A log message passed to the the assigned function.

            • (message): void
            • Parameters

              • message: string

              Returns void

        Returns void