For anyone getting ECONNRESET (or connection error) with self signed certificate and wss SecureServer
The reason i found was that, even though when loading the website is my browser, i had added a self signed cert approval, this did not extend to the WSS connection, I had to load the WSS url in my browser (but with https, instead) and approve it then it works !

`Error: Connection from tcp://xxx:8183 failed during TLS handshake: Connection lost during TLS handshake (ECONNRESET)`

`MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT`

`var conn = new ab.Session('wss://mydomain:8080',`

open https://mydomain:8080 in my browser