docs: def api_server(connection, server_class):
      """
      Establishes an API Server on the supplied connection
  
      Arguments:
          - connection (xbahn.connection.Connection)
          - server_class (xbahn.api.Server)
  
      Returns:
          - server_class: server instance
      """
  
      # run api server on connection
      return server_class(
          link=xbahn.connection.link.Link(
              # use the connection to receive messages
              receive=connection,
              # use the connection to respond to received messages
              respond=connection
          )
      )