Merge pull request #467 from mattermost/mm-2021

Fixes mm-2021 removes hard coded port for SSL
Этот коммит содержится в:
Christopher Speller
2015-08-25 12:24:46 -04:00
родитель 70da0dbec6 ec1fbeb1a5
Коммит b4ee263730

Просмотреть файл

@@ -25,12 +25,10 @@ var SocketStore = assign({}, EventEmitter.prototype, {
if (window.WebSocket && !conn) {
var protocol = 'ws://';
var port = '';
if (window.location.protocol === 'https:') {
protocol = 'wss://';
port = ':8443';
}
var connUrl = protocol + location.host + port + '/api/v1/websocket';
var connUrl = protocol + location.host + '/api/v1/websocket';
console.log('connecting to ' + connUrl);
conn = new WebSocket(connUrl);