https://github.com/web-platform-tests/wpt
Raw File
Tip revision: cd7e423fd7bf89a2f25ba3fdc79d073b1b942c6f authored by Jonathon Kereliuk on 04 April 2018, 18:19:15 UTC
added infra test that I forgot to add before
Tip revision: cd7e423
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