Skip to content

Commit

Permalink
Merge pull request #27 from UserJHansen/master
Browse files Browse the repository at this point in the history
Make connect handler return url
  • Loading branch information
ryo-ma authored Aug 27, 2021
2 parents d032965 + a9f677a commit 87017ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class WebSocketServer extends EventEmitter {
}
const ws: WebSocketAcceptedClient = new WebSocketAcceptedClient(sock);
this.clients.add(ws);
this.emit("connection", ws);
this.emit("connection", ws, req.url);
} catch (err) {
this.emit("error", err);
await req.respond({ status: 400 });
Expand Down

0 comments on commit 87017ed

Please sign in to comment.