https://github.com/web-platform-tests/wpt
Raw File
Tip revision: edb6add725f4a43f656314d2975d96c87e67d3f8 authored by Domenic Denicola on 21 February 2018, 20:38:09 UTC
Further fixes per review and my own discoveries
Tip revision: edb6add
constants.js
//This file requires server-side substitutions and must be included as constants.js?pipe=sub

var PORT = "{{ports[ws][0]}}";
var PORT_SSL = "{{ports[wss][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