Closes the connection with the hub.
Receives the next packet when there's one available. This action is blocking.
Starts a new thread and send a new message to the server when a new packet arrives.
See Implementation