API
useSendMessage
Hook to send a message to a stream. Can be used to send a message to a channel or a dm/group dm.
Imports
Definition
Source: useSendMessage
Parameters
streamId
- Type:
string
The id of the stream to send the message to.
config
- Type:
ActionConfig<Channel['sendMessage']>
- Optional
Configuration options for the action.
Return Type
The sendMessage action and the status of the action.
Was this page helpful?