Skip to content

Commit

Permalink
Recover subscriptions by module name
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Jan 8, 2025
1 parent 1962b4f commit 7d542cd
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,29 @@ given |event name| and |session| is:

</div>

<div algorithm>
To <dfn>obtain a set of event names</dfn> given a |name|:

1. Let |events| be an empty [=/set=].

1. If |name| contains a U+002E (period):

1. If |name| is the [=event name=] for an event, append |name| to |events|
and return [=success=] with data |events|.

1. Return an [=error=] with [=error code=] [=invalid argument=]

1. Otherwise |name| is interpreted as representing all the events in a
module. If |name| is not a [=module name=] return an [=error=] with
[=error code=] [=invalid argument=].

1. Append the [=event name=] for each [=event=] in the module with name |name| to
|events|.

1. Return [=success=] with data |events|.

</div>

# Transport # {#transport}

Message transport is provided using the WebSocket protocol.
Expand Down Expand Up @@ -2005,7 +2028,11 @@ The [=remote end steps=] with |session| and |command parameters| are:

1. If |command parameters| matches the <code>session.UnsubscribeByAttributesRequest</code> production:

1. Let |event names| be [=set/create|create a set=] with |command parameters|["<code>events</code>"].
1. Let |event names| be an empty [=/set=].

1. For each entry |name| in |command parameters|["<code>events</code>"],
let |event names| be the union of |event names| and the result of
[=trying=] to [=obtain a set of event names=] with |name|.

1. Let |top-level traversable context ids| be a [=/set=].

Expand Down

0 comments on commit 7d542cd

Please sign in to comment.