Error code: 40311 - operation requires tls connection

When you create an Ably app, the default setting requires TLS for connections.

This error occurs if you use a realtime SDK to connect to an Ably app with this default setting. It happens when you explicitly set tls client option to false while using token authentication.

NOTE: You will see a 40103 error instead if you use an API key for authentication