Skip to content
This repository was archived by the owner on Jan 20, 2019. It is now read-only.

Commit 07c9f28

Browse files
committed
adjust package ws breaking change
see websockets/ws#1099.
1 parent 677d966 commit 07c9f28

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/stream-handler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function(name: string, ws: Websocket): Promise<void> {
1111
logInfo(`Request: stream /streams/${name}`);
1212

1313
const query = (() => {
14-
const url = ws.upgradeReq.url;
14+
const url = ws.url;
1515
const querystring: string = url_process.parse(url).query;
1616
return query_process.parse(querystring);
1717
})();

src/stream-handlers/group-talk.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as query_process from 'querystring';
88

99
export default async function(user: IUser, ws: Websocket): Promise<void> {
1010
const query = (() => {
11-
const q = url_process.parse(ws.upgradeReq.url).query;
11+
const q = url_process.parse(ws.url).query;
1212
return query_process.parse(q);
1313
})();
1414

src/stream-handlers/talk.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as query_process from 'querystring';
99

1010
export default async function(user: IUser, ws: Websocket): Promise<void> {
1111
const query = (() => {
12-
const q = url_process.parse(ws.upgradeReq.url).query;
12+
const q = url_process.parse(ws.url).query;
1313
return query_process.parse(q);
1414
})();
1515

0 commit comments

Comments
 (0)