diff --git a/index.bs b/index.bs index c32a36e..784ce94 100644 --- a/index.bs +++ b/index.bs @@ -1059,7 +1059,7 @@ To cancel a {{WebSocketStream}} |stream| given |reason|, [=close usin
To write |chunk| to a {{WebSocketStream}} |stream|: - 1. Let |promise| be a new promise. + 1. Let |promise| be [=a new promise=] created in |stream|'s [=relevant realm=]. 1. If |chunk| is a {{BufferSource}}, 1. Let |data| be a [=get a copy of the buffer source|copy of the bytes=] given |chunk|. 1. Let |opcode| be a binary frame opcode.