mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
change: Use solid-0.1 as protocol string.
See https://github.com/solid/solid-spec/pull/230
This commit is contained in:
committed by
Joachim Van Herwegen
parent
748476afbb
commit
5bb7822dc7
@@ -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',
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user