I had facing the same issue.
While using https://mm.mydomain.com:5443 at IOS app, websocket error pop.
While change to http, the app shows " We could not connect to the Mattermost server or the server running in an incompatible version".
The SSL cert keys generated by myself (I'm not own a real cert) and persist to use HTTPS for all connections.