- Connect to server socket
- Receive session_body message and display session_id as QR code
- Begin listening for incoming messages with the from_session_body_data message.
Session body
{"session_id":"<session_string>"}from_session_body_data
{"from_session_id":"", "data":<global message types>}{
"address": "6505551212",
"body": "Android is always a sweet treat!",
"date": "1691010356892",
"displayName": null,
"errorCode": null,
"id": "367221886",
"read": 1,
"routerStatus": null,
"routingUrls": [],
"statusCode": 0,
"subscriptionId": 0,
"threadId": "65",
"type": "<sms type>"
}MESSAGES_TYPE_THREADS: Threading list for messages
{
"type": "MESSAGES_TYPE_THREADS",
"smsList": "[{<sms item>}, ...]",
"action": "<Actions>"
}MESSAGES_TYPE_SINGLE: Single Thread has been requested
{
"type": "MESSAGES_TYPE_SINGLE",
"threadId": "24",
"smsList": "[{<sms item>}, ...]",
"action": "<Actions>"
}create: New message has been addedread: Message(s) or thread(s) can be rendered on UIupdate: Message(s) state has changed. State changes includemessage sent,message failed,message delivered. This would be determined by the SMS itemtype.delete: Message(s) or thread(s) have been deleted
1: inbox2: sent3: dafts4: outbox5: failed6: queued