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 7, 2025
1 parent 1962b4f commit 9bdaae7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 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 an |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

0 comments on commit 9bdaae7

Please sign in to comment.