Reconnect on socket error
Merge pull request #203 from aesedepece/coseme-autoreconnect

Reconnect on socket error