caterva2.subscribe#

caterva2.subscribe(root, urlbase='http://localhost:8002/', auth_cookie=None)#

Subscribe to a root.

Parameters:
  • root (str) – The name of the root to subscribe to.

  • urlbase (str) – The base of URLs (slash-terminated) of the subscriber to query.

  • auth_cookie (str) – An optional HTTP cookie for authorizing access.

Returns:

The response from the server.

Return type:

str