Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit e044fb9

Browse files
author
bhasher
committed
Fix chrome-based websocket port bug
1 parent 07a533e commit e044fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/publics/js/dev/utils/websocket/socket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class Socket{
1717

1818
this.options = options || {};
1919

20-
Debug.debug(this.uri().href);
20+
Debug.debug('Websocket connection to', this.uri());
2121
this.ws = new WebSocket(this.uri().href);
2222

2323
this.ws.onmessage = this.onMessage;
@@ -53,7 +53,7 @@ export default class Socket{
5353
if(this.options.port
5454
&& (protocol === 'wss' && Number(this.options.port) !== 443
5555
|| protocol === 'ws' && Number(this.options.port) !== 80)){
56-
return ':' + this.options.port;
56+
return this.options.port;
5757
}else{
5858
return '';
5959
}

0 commit comments

Comments
 (0)