Skip to content

Commit 1388d5e

Browse files
fix: slashes
1 parent f048ea4 commit 1388d5e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client-src/clients/SockJSClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = class SockJSClient extends BaseClient {
1010

1111
// SockJS requires `http` and `https` protocols
1212
this.sock = new SockJS(
13-
url.replace(/^ws:/i, 'http://').replace(/^wss:/i, 'https://')
13+
url.replace(/^ws:/i, 'http:').replace(/^wss:/i, 'https:')
1414
);
1515
this.sock.onerror = (error) => {
1616
log.error(error);

client-src/utils/createSocketURL.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function createSocketURL(parsedURL) {
8989
hostname: socketURLHostname,
9090
port: socketURLPort,
9191
pathname: socketURLPathname,
92+
slashes: true,
9293
});
9394
}
9495

0 commit comments

Comments
 (0)