0
votes

I am working to integrate Twilio Programmable Chat into a Qt/QML application - meaning I cannot readily use the Javascript Client SDK. I would like to have features like typing indicator, token expiration notices, etc. handled in my client.

In the examples, the client sdk initiates a WebSocket connection directly to Twilio and receives events like token expiration, etc. directly.

Twilio seems to provide a number of SDKs that abstract the majority of features (read receipt, typing indicator, access-token), for Javascript, iOs, and Android.

However, it appears that their "server-side" wrappers (helper libraries) offer limited functionality only for accessing REST aspects of API, and not WebSockets.

As I am working in QML I cannot just drop a remote Javascript library into a webpage and start building a client (The Javascript inevitably does not act the same).

Does Twilio provide any documentation for access it's Programmable Chat WebSocket connections directly? I could also build my own NodeJS WebSocket wrapper around a library, however, twilio-node just looks like a wrapper around the REST API as well.

1

1 Answers

1
votes

Twilio developer evangelist here.

The websocket API is not a documented API or protocol and it is not recommended to build against it as undocumented changes may break your implementation.

It is true that the server side libraries only cover the REST API. You can also receive events from the Chat API using the webhooks that are available.