Function useStreamAllMessages
- useStreamAllMessages(onMessage?, onError?): {
error: null | Error;
} Parameters
Optional
onMessage: ((message: DecodedMessage<any>) => void | Promise<void>)- (message): void | Promise<void>
Parameters
- message: DecodedMessage<any>
Returns void | Promise<void>
Optional
onError: ((error: Error) => void)- (error): void
Returns void
Returns {
error: null | Error;
}
This hook streams new messages from all conversations on mount and exposes an error state.