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

Commit

Permalink
adjust package ws breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
otofune committed Jul 2, 2017
1 parent 677d966 commit 07c9f28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stream-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function(name: string, ws: Websocket): Promise<void> {
logInfo(`Request: stream /streams/${name}`);

const query = (() => {
const url = ws.upgradeReq.url;
const url = ws.url;
const querystring: string = url_process.parse(url).query;
return query_process.parse(querystring);
})();
Expand Down
2 changes: 1 addition & 1 deletion src/stream-handlers/group-talk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as query_process from 'querystring';

export default async function(user: IUser, ws: Websocket): Promise<void> {
const query = (() => {
const q = url_process.parse(ws.upgradeReq.url).query;
const q = url_process.parse(ws.url).query;
return query_process.parse(q);
})();

Expand Down
2 changes: 1 addition & 1 deletion src/stream-handlers/talk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as query_process from 'querystring';

export default async function(user: IUser, ws: Websocket): Promise<void> {
const query = (() => {
const q = url_process.parse(ws.upgradeReq.url).query;
const q = url_process.parse(ws.url).query;
return query_process.parse(q);
})();

Expand Down

0 comments on commit 07c9f28

Please sign in to comment.