Skip to content

Commit 197fa89

Browse files
committed
Add an emit events algorithm
1 parent 8c28b39 commit 197fa89

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

index.bs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,19 @@ To <dfn>obtain a set of event names</dfn> given an |name|:
539539

540540
</div>
541541

542+
<div algorithm>
543+
To <dfn>emit events</dfn> given |body| and |related browsing contexts|:
544+
545+
1. [=Assert=]: |body| has [=map/size=] 2 and [=contains=] "<code>method</code>"
546+
and "<code>params</code>".
547+
548+
1. For each |session| in the [=set of sessions for which an event is enabled=]
549+
given |body|["method"] and |related browsing contexts|:
550+
551+
1. [=Emit an event=] with |session| and |body|.
552+
553+
</div>
554+
542555
# Transport # {#transport}
543556

544557
Message transport is provided using the WebSocket protocol.

0 commit comments

Comments
 (0)