Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit db3844d

Browse files
committed
Close on unsupported client protocol.
1 parent 8709903 commit db3844d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api-websockets.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ the server SHOULD warn the client as follows:
6565
warning Missing Sec-WebSocket-Protocol header, expected value 'solid-ws-draft/v0.1.0-alpha'
6666
```
6767

68+
Otherwise, if the set of values obtained
69+
from parsing the `Sec-WebSocket-Protocol` header
70+
does not contain `solid-ws-draft/v0.1.0-alpha`,
71+
then the server SHOULD emit a warning
72+
and SHOULD close the connection:
73+
74+
```
75+
error Client does not support protocol solid-ws-draft/v0.1.0-alpha
76+
```
77+
6878
### Subscription
6979
Then, the client needs to *sub*(scribe) to a given resource URI.
7080
If any change occurs in that resource,

0 commit comments

Comments
 (0)