Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca authored Mar 16, 2024
1 parent b027ba5 commit 5759e67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ wss2.on('connection', function connection(ws) {
});

server.on('upgrade', function upgrade(request, socket, head) {
const baseURL = request.protocol + '://' + request.headers.host + '/';
const { pathname } = new URL(request.url, baseURL);
const { pathname } = new URL(request.url, 'wss://base.url');

if (pathname === '/foo') {
wss1.handleUpgrade(request, socket, head, function done(ws) {
Expand Down

0 comments on commit 5759e67

Please sign in to comment.