support tls
tls example
emit('disconnect', err) to allow user to handle disconnection reason
1.1.0