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

Commit 8709903

Browse files
committed
Warn on missing client protocol.
1 parent 1fe5de9 commit 8709903

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api-websockets.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ protocol solid-ws-draft/v0.1.0-alpha
5858
warning Unstandardized protocol version, proceed with care
5959
```
6060

61+
If the client did not specify a `Sec-WebSocket-Protocol` header,
62+
the server SHOULD warn the client as follows:
63+
64+
```
65+
warning Missing Sec-WebSocket-Protocol header, expected value 'solid-ws-draft/v0.1.0-alpha'
66+
```
67+
6168
### Subscription
6269
Then, the client needs to *sub*(scribe) to a given resource URI.
6370
If any change occurs in that resource,

0 commit comments

Comments
 (0)