Added support for automatic reconnection, currently attempts every 5 seconds, maybe it should be slowed down after x failures. It pops up an alert which blocks the entire application
Disallowed using socket._send() if the socket is marked disconnected or it doesn't exist to prevent throws