<!--
{
  "documentType" : "article",
  "framework" : "LiveCommunicationKit",
  "identifier" : "/documentation/LiveCommunicationKit/captioning-receive-sequence-message",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Receive Sequence Message"
}
-->

# Receive Sequence Message

Receive the most recent sequence number from the FaceTime Web service.

## JSON

```json
    interface SequenceMessage {
      type: "msg";
      seq: number;
    }
```

## Parameters

|Member|Type  |Description                                                                                                  |
|------|------|-------------------------------------------------------------------------------------------------------------|
|`type`|String|The string `seq`.                                                                                            |
|`seq` |Number|The `seq` of the last `CaptionMessage` FaceTime Web forwarded to the call, or `0` if it hasn’t forwarded one.|

## Discussion

FaceTime Web sends this message to the captioning app in response to a request for the last sequence number.
The value of `seq` represents the sequence number used by the most recent `CaptionMessage` that FaceTime Web successfully forwarded to the call.

Handle the message as a JSON string, similar to the following:

```json
    {
      "type": "seq",
      "seq": 42
    }
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)