Revert wss change and modify port #

This commit is contained in:
Robert L 2018-01-09 10:43:07 -05:00
parent eb13a47463
commit 7c5db7d3ed

View File

@ -2,7 +2,7 @@
// -grapenut // -grapenut
var defaultHost = "ats.trekmush.org"; var defaultHost = "ats.trekmush.org";
var defaultPort = '1701'; var defaultPort = '1700';
// pre-define the connection object, later it will be set to // pre-define the connection object, later it will be set to
// conn = WSClient.open('ws://host:port/wsclient') // conn = WSClient.open('ws://host:port/wsclient')
@ -286,9 +286,9 @@ function reconnect() {
msg('%% Reconnecting to server...\r\n'); msg('%% Reconnecting to server...\r\n');
// detect whether to use SSL or not /* Dont Detect because GitHub is HTTP and ATS is not. Force ws:// (RL) */ // detect whether to use SSL or not
// var proto = ((window.location.protocol == "https:") || settings.forceSSL.val) ? 'wss://' : 'ws://'; var proto = ((window.location.protocol == "https:") || settings.forceSSL.val) ? 'wss://' : 'ws://';
var proto = 'ws://'; //var proto = 'ws://';
// open a new connection to ws://host:port/wsclient // open a new connection to ws://host:port/wsclient
conn = WSClient.connect(proto + settings.serverAddress.val + ":" + settings.serverPort.val + '/wsclient'); conn = WSClient.connect(proto + settings.serverAddress.val + ":" + settings.serverPort.val + '/wsclient');