Skip to content

Commit 7a23fa5

Browse files
fix(client): Update location detection for socket.io
1 parent db47fbd commit 7a23fa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var KARMA_URL_ROOT = require('./constants').KARMA_URL_ROOT;
66

77

88
// Connect to the server using socket.io http://socket.io
9-
var socket = io(location.protocol + location.host, {
9+
var socket = io(location.host, {
1010
reconnectionDelay: 500,
1111
reconnectionDelayMax: Infinity,
1212
timeout: 2000,

0 commit comments

Comments
 (0)