Skip to content

Commit

Permalink
Allow to use port from current page, the same way we allow to use hos…
Browse files Browse the repository at this point in the history
…tname.
  • Loading branch information
pcorpet committed Mar 16, 2016
1 parent 3dd3e2a commit d7d0741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var newConnection = function() {
protocol: urlParts.protocol,
auth: urlParts.auth,
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
port: urlParts.port,
port: (urlParts.port == '0') ? window.location.port : urlParts.port,
pathname: urlParts.path == null || urlParts.path === '/' ? "/sockjs-node" : urlParts.path
}));

Expand Down

0 comments on commit d7d0741

Please sign in to comment.