SDKsWASM
Create an emoji message
Create an emoji message with the WASM SDK.
const { data: message } = await openimsdk.createFaceMessage({
index: 12,
data: JSON.stringify({ pack: 'default' }),
});index is an emoji index defined by the sender and receiver, and data is the complete extension string. Both clients must use the same emoji pack protocol and provide a fallback for unknown indices. When the Promise resolves, it has created only a pending message object.
Was this page helpful?