enum RoutingState { error, preConnection, negotiating, handleStanzas }