change: Use solid-0.1 as protocol string.

See https://github.com/solid/solid-spec/pull/230
This commit is contained in:
Ruben Verborgh
2021-01-14 15:00:26 +01:00
committed by Joachim Van Herwegen
parent 748476afbb
commit 5bb7822dc7
3 changed files with 14 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ describe('A server with the Solid WebSockets API behind a proxy', (): void => {
const messages = new Array<string>();
beforeAll(async(): Promise<void> => {
client = new WebSocket(`ws://localhost:${port}`, [ 'solid/0.1.0-alpha' ], { headers });
client = new WebSocket(`ws://localhost:${port}`, [ 'solid-0.1' ], { headers });
client.on('message', (message: string): any => messages.push(message));
await new Promise((resolve): any => client.on('open', resolve));
});
@@ -64,8 +64,7 @@ describe('A server with the Solid WebSockets API behind a proxy', (): void => {
it('sends the protocol version.', (): void => {
expect(messages).toEqual([
'protocol solid/0.1.0-alpha',
'warning Unstandardized protocol version, proceed with care',
'protocol solid-0.1',
]);
});