@@ -731,8 +731,8 @@ typically be "<code>localhost</code>".
731
731
To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=]
732
732
|connection|, type |type| and data |data|:
733
733
734
- 1. If |type| is not [=%x1 denotes a text frame|text=] , [=respond with an
735
- error =] given |connection|, null, and [=invalid argument=] , and finally
734
+ 1. If |type| is not [=%x1 denotes a text frame|text=] , [=send an error
735
+ response =] given |connection|, null, and [=invalid argument=] , and finally
736
736
return.
737
737
738
738
1. [=Assert=] : |data| is a [=scalar value string=] , because the
@@ -749,8 +749,8 @@ To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=]
749
749
null. Otherwise, return.
750
750
751
751
1. Let |parsed| be the result of [=parse JSON into Infra values|parsing JSON
752
- into Infra values=] given |data|. If this throws an exception, then [=respond
753
- with an error=] given |connection|, null, and [=invalid argument=] , and
752
+ into Infra values=] given |data|. If this throws an exception, then [=send
753
+ an error response =] given |connection|, null, and [=invalid argument=] , and
754
754
finally return.
755
755
756
756
1. Match |parsed| against the [=remote end definition=] . If this results in a
@@ -768,7 +768,7 @@ To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=]
768
768
1. Let |command| be the command with [=command name=] |method|.
769
769
770
770
1. If |session| is null and |command| is not a [=static command=] , then
771
- [=respond with an error=] given |connection|, |command id|, and [=invalid
771
+ [=send an error response =] given |connection|, |command id|, and [=invalid
772
772
session id=] , and return.
773
773
774
774
1. Run the following steps in parallel:
@@ -777,7 +777,7 @@ To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=]
777
777
|command| given |session| and [=command parameters=]
778
778
|matched|["<code>params</code>"]
779
779
780
- 1. If |result| is an [=error=] , then [=respond with an error=] given
780
+ 1. If |result| is an [=error=] , then [=send an error response =] given
781
781
|connection|, |command id|, and |result|'s [=error code=] , and finally
782
782
return.
783
783
@@ -816,7 +816,7 @@ To <dfn>handle an incoming message</dfn> given a [=WebSocket connection=]
816
816
string, but |parsed|["<code>method</code>"] is not in the [=set of all
817
817
command names=] , set |error code| to [=unknown command=] .
818
818
819
- 1. [=Respond with an error=] given |connection|, |command id|, and
819
+ 1. [=Send an error response =] given |connection|, |command id|, and
820
820
|error code|.
821
821
822
822
</div>
@@ -858,7 +858,7 @@ To <dfn>get related browsing contexts</dfn> given an [=script/settings object=]
858
858
</div>
859
859
860
860
<div algorithm>
861
- To <dfn>respond with an error</dfn> given a [=WebSocket connection=]
861
+ To <dfn>send an error response </dfn> given a [=WebSocket connection=]
862
862
|connection|, |command id|, and |error code|:
863
863
864
864
1. Let |error data| be a new map matching the <code> ErrorResponse</code>
0 commit comments