Skip to content

Commit 3c2a05c

Browse files
committed
Add an emit events algorithm
1 parent 87e5ef0 commit 3c2a05c

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
@@ -519,6 +519,19 @@ To <dfn>obtain a set of event names</dfn> given an |name|:
519519

520520
</div>
521521

522+
<div algorithm>
523+
To <dfn>emit events</dfn> given |body| and |related browsing contexts|:
524+
525+
1. [=Assert=]: |body| has [=map/size=] 2 and [=contains=] "<code>method</code>"
526+
and "<code>params</code>".
527+
528+
1. For each |session| in the [=set of sessions for which an event is enabled=]
529+
given |body|["method"] and |related browsing contexts|:
530+
531+
1. [=Emit an event=] with |session| and |body|.
532+
533+
</div>
534+
522535
# Transport # {#transport}
523536

524537
Message transport is provided using the WebSocket protocol.

0 commit comments

Comments
 (0)