Reconnect, if the connection has been close
Console.log's comented
Merge pull request #1 from alfonsoabad/reconnect

reconnect funcionallity