@twilio/voice-sdk
    Preparing search index...

    Interface Message

    A Call Message represents the data that is being transferred between Twilio and the SDK.

    interface Message {
        content: any;
        contentType?: string;
        messageType: string;
        voiceEventSid?: string;
    }
    Index

    Properties

    content: any

    The content of the message which should match the contentType parameter.

    contentType?: string

    The MIME type of the content. The default value is application/json and is the only contentType that is supported at the moment.

    messageType: string

    The type of message. Currently, only 'user-defined-message' is supported. More message types will be added in the future. See call resource documentation for more details.

    voiceEventSid?: string

    An autogenerated id that uniquely identifies the instance of this message. This is not required when sending a message from the SDK as this is autogenerated. But it will be available after the message is sent, or when a message is received.