Function useStreamAllMessages

This hook streams new messages from all conversations on mount and exposes an error state.

  • Parameters

    • OptionalonMessage: ((message: DecodedMessage<any>) => void | Promise<void>)
        • (message): void | Promise<void>
        • Parameters

          • message: DecodedMessage<any>

          Returns void | Promise<void>

    • OptionalonError: ((error: Error) => void)
        • (error): void
        • Parameters

          • error: Error

          Returns void

    Returns {
        error: null | Error;
    }

    • error: null | Error