DirectChannelStreamMessageSendRequest
Name
Type
Description
Notes
fromUserId
string
Sender user ID. The sender should have an access token so push notifications can display sender information correctly.
[default to undefined]
toUserId
string
Recipient user ID. Only a single recipient is supported per stream message.
[default to undefined]
messageType
string
Message type. Fixed value `RC:StreamMsg` for stream messages.
[default to undefined]
content
StreamMessageContent
[default to undefined]
isEchoToSender
number
Whether to sync the message to the sender's client while the sender is online. `1` enables sync and `0` disables it.
[optional] [default to undefined]
shouldPersist
number
Whether to store the message in recipient cloud history. `0` means do not store and `1` means store.
[optional] [default to undefined]
metadata
{ [key: string]: string; }
Custom message metadata entries. Keys are limited to 32 characters and values to 4096 characters. Up to 100 key-value pairs.
[optional] [default to undefined]
disableUpdateLastMsg
boolean
Whether to keep this message from updating the channel's last-message preview.
[optional] [default to undefined]
import { DirectChannelStreamMessageSendRequest } from '@nexconn/server-sdk' ;
const instance : DirectChannelStreamMessageSendRequest = {
fromUserId,
toUserId,
messageType,
content,
isEchoToSender,
shouldPersist,
metadata,
disableUpdateLastMsg,
} ;
[Back to Model list] [Back to API list] [Back to README]