https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f94819e400d96a3f36377887dcacd5852320e078 authored by Domenic Denicola on 27 April 2016, 19:47:09 UTC
Add streams test owners
Tip revision: f94819e
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