Skip to main content

useChannelMessage

You can use this hook to subscribe to Channel message events in your React app.

Example

This example assumes you have already initialized the Hop React SDK.

useReadChannelState

You can use this hook to subscribe to Channel state in your React app.

Hook Return Value

Example

This example assumes you have already initialized the Hop React SDK.