Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDefaultUse
attrs"status"additional data to store for the new subscription - can be any type
channel_type"subs"describes each pico's new channel created for the subscription
my_role"peer"describes pico A (self) in the context of the subscription
namestring including a random English wordIf a subscription with the same combination of name and namespace exists in the engine hosting pico A, the subscription won't be created. Otherwise, pico A will receive wrangler:outbound_pending_subscription_added and pico B will receive wrangler:inbound_pending_subscription_added.

If pico B is hosted on a different engine and a subscription with this full name already exists there (e.g. "name_spacenamespace:name"), the new subscription will be cancelled and both picos will receive wrangler:subscription_removed after the '_added' events.
name_space"shared"
subscriber_ecithe subscription won't be createdthe subscription process needs one of pico B's existing eci's
subscriber_hostnonethe public DNS name of the engine hosting pico B (only needed if different from pico A's) - e.g. "https://localhost:8080"
subscriber_role"peer"describes pico B in the context of the subscription

...

NameValue
attributesattrs in wrangler:subscription
channel_namefull subscription name(e.g. "name_spacenamespace:name")
channel_typedefined in wrangler:subscription
inbound_ecipico A's new eci created for the subscription
my_roledefined in wrangler:subscription
namedefined in wrangler:subscription
name_spacedefined in wrangler:subscription
relationshipstring of the form my_role+"<->"+subscriber_role
status"outbound"
subscriber_ecidefined in wrangler:subscription
subscriber_host (only included if the
picos are hosted on different engines)
defined in wrangler:subscription
subscriber_roledefined in wrangler:subscription

...

NameValue

attributes

attrs in wrangler:subscription
channel_namefull subscription name(e.g. "name_spacenamespace:name")
channel_typedefined in wrangler:subscription
my_rolesubscriber_role in wrangler:subscription
namedefined in wrangler:subscription
name_spacedefined in wrangler:subscription
outbound_ecipico A's new eci created for the subscription
relationshipstring of the form my_role+"<->"+subscriber_role
status"inbound"
subscriber_host (only included if the
picos are hosted on different engines)
public DNS name of the engine hosting pico A
subscriber_rolemy_role in wrangler:subscription

...

NameValue
channel_namefull subscription name(e.g. "name_spacenamespace:name")


example value of getSubscriptions(){channel_name}: (pico A)

...