https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 02832764733119f0883cbdd8a50db41d745ea420 authored by Ms2ger on 07 April 2016, 11:57:32 UTC
Add @Sebmaster to url reviewers.
Tip revision: 0283276
constants.js
//This file requires server-side substitutions and must be included as constants.js?pipe=sub

var PORT = "{{ports[ws][0]}}";
//FIXME: Add support for wss
var PORT_SSL = "{{ports[ws][0]}}";

var SCHEME_DOMAIN_PORT;
if (location.search == '?wss') {
  SCHEME_DOMAIN_PORT = 'wss://{{host}}:' + PORT_SSL;
} else {
  SCHEME_DOMAIN_PORT = 'ws://{{host}}:' + PORT;
}
back to top