Skip to content

Commit

Permalink
fix(deps): update dependency ws to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate-bot authored and RubenVerborgh committed Aug 2, 2021
1 parent 2ae95bd commit 8c266f0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 12 deletions.
44 changes: 36 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -129,7 +129,7 @@
"uuid": "^8.3.2",
"winston": "^3.3.3",
"winston-transport": "^4.4.0",
"ws": "^7.5.1",
"ws": "^8.0.0",
"yargs": "^17.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/WebSocketsProtocol.test.ts
Expand Up @@ -46,7 +46,7 @@ describe('A server with the Solid WebSockets API behind a proxy', (): void => {

beforeAll(async(): Promise<void> => {
client = new WebSocket(`ws://localhost:${port}`, [ 'solid-0.1' ], { headers });
client.on('message', (message: string): any => messages.push(message));
client.on('message', (message: Buffer): any => messages.push(message.toString()));
await new Promise((resolve): any => client.on('open', resolve));
});

Expand Down
4 changes: 2 additions & 2 deletions test/unit/server/WebSocketServerFactory.test.ts
Expand Up @@ -47,8 +47,8 @@ describe('SimpleWebSocketHandler', (): void => {

it('has a functioning WebSockets interface.', async(): Promise<void> => {
const client = new WebSocket('ws://localhost:5556');
const text = await new Promise((resolve): any => client.on('message', resolve));
expect(text).toBe('SimpleWebSocketHandler');
const buffer = await new Promise<Buffer>((resolve): any => client.on('message', resolve));
expect(buffer.toString()).toBe('SimpleWebSocketHandler');
expect(webSocketHandler.host).toBe('localhost:5556');
});
});

0 comments on commit 8c266f0

Please sign in to comment.