Automatic reconnect after the server dropped the connection.
Merge pull request #4 from pizzocel/automatic-reconnection

Automatic reconnect after the server dropped the connection.