Fixes mm-2021 removes hard coded port
Этот коммит содержится в:
@@ -25,11 +25,10 @@ var SocketStore = assign({}, EventEmitter.prototype, {
|
|||||||
|
|
||||||
if (window.WebSocket && !conn) {
|
if (window.WebSocket && !conn) {
|
||||||
var protocol = 'ws://';
|
var protocol = 'ws://';
|
||||||
var port = '';
|
|
||||||
if (window.location.protocol === 'https:') {
|
if (window.location.protocol === 'https:') {
|
||||||
protocol = 'wss://';
|
protocol = 'wss://';
|
||||||
}
|
}
|
||||||
var connUrl = protocol + location.host + port + '/api/v1/websocket';
|
var connUrl = protocol + location.host + '/api/v1/websocket';
|
||||||
console.log('connecting to ' + connUrl);
|
console.log('connecting to ' + connUrl);
|
||||||
conn = new WebSocket(connUrl);
|
conn = new WebSocket(connUrl);
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user