@@ -6,7 +6,7 @@ versioned as a whole.
66
77## Status
88This is a _ draft_ protocol.
9- This specific version is identified by the string ` solid-ws-draft/v0 .1.0-alpha ` .
9+ This specific version is identified by the string ` solid/0 .1.0-alpha ` .
1010
1111## Protocol description
1212
@@ -41,38 +41,38 @@ Updates-Via: wss://example.org
4141### Connection
4242Then, the client needs to open a WebSocket connection
4343to that URI.
44- The client _ SHOULD_ include the protocol version ` solid-ws-draft/v0 .1.0-alpha `
44+ The client _ SHOULD_ include the protocol version ` solid/0 .1.0-alpha `
4545in the ` Sec-WebSocket-Protocol ` header.
4646
4747For example, in JavaScript, this could be done as follows:
4848
4949```
50- const socket = new WebSocket('wss://example.org', ['solid-ws-draft/v0 .1.0-alpha']);
50+ const socket = new WebSocket('wss://example.org', ['solid/0 .1.0-alpha']);
5151```
5252
5353Upon connection,
5454the server SHOULD indicate the protocol version as follows:
5555
5656```
57- protocol solid-ws-draft/v0 .1.0-alpha
57+ protocol solid/0 .1.0-alpha
5858warning Unstandardized protocol version, proceed with care
5959```
6060
6161If the client did not specify a ` Sec-WebSocket-Protocol ` header,
6262the server SHOULD warn the client as follows:
6363
6464```
65- warning Missing Sec-WebSocket-Protocol header, expected value 'solid-ws-draft/v0 .1.0-alpha'
65+ warning Missing Sec-WebSocket-Protocol header, expected value 'solid/0 .1.0-alpha'
6666```
6767
6868Otherwise, if the set of values obtained
6969from parsing the ` Sec-WebSocket-Protocol ` header
70- does not contain ` solid-ws-draft/v0 .1.0-alpha ` ,
70+ does not contain ` solid/0 .1.0-alpha ` ,
7171then the server SHOULD emit a warning
7272and SHOULD close the connection:
7373
7474```
75- error Client does not support protocol solid-ws-draft/v0 .1.0-alpha
75+ error Client does not support protocol solid/0 .1.0-alpha
7676```
7777
7878### Subscription
@@ -128,7 +128,7 @@ Here is a Javascript example on how to subscribe to live updates for a `test`
128128resource at ` https://example.org/data/test ` :
129129
130130``` js
131- var socket = new WebSocket (' wss://example.org/' , [' solid-ws-draft/v0 .1.0-alpha' ]);
131+ var socket = new WebSocket (' wss://example.org/' , [' solid/0 .1.0-alpha' ]);
132132socket .onopen = function () {
133133 this .send (' sub https://example.org/data/test' );
134134};
0 commit comments