more asynchronous stuff, more debug output. plain tcp works. mosquitto does not seem to like my tls version: 'OpenSSL Error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number'. WSS uses tlsv1, same as specified in mosquitto.conf. WSS completes tls handshake successfully but mosquitto complains. #12