useChannelMessage
Example
This example assumes you have already initialized the Hop React
SDK.
useReadChannelState
Hook Return Value
| field | type | description |
|---|---|---|
| state | ?object | the channel state |
| error | ?object | leap error (if failed to subscribe) |
| subscription | enum | non_existent, pending, unavailable, or available |
Example
This example assumes you have already initialized the Hop React
SDK.