code: def transport_connected(self):
          
          with self.lock:
              if self.initiator:
                  if self._output_state is None:
                      self._initiate()
docs: Called when transport has been connected.
  
          Send the stream head if initiator.