added reconnect() to the transport api