https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3a7122b0fe27b1f2426fd3613151c2a0e4137cee authored by Ms2ger on 26 October 2015, 09:46:22 UTC
Remove reference to id2path script from the README.
Tip revision: 3a7122b
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