Add onConnect() and onDisconnect() events
Implement new MessageListener interface
Implement new MessageListener interface
Add javadoc and lower sleep time
Add javadoc and report exceptions during send
Add disconnection event dispatcher
Kill sleep loop if the remote connection fails
Updates for disconnect event