https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d9f55b34b619b49c5ecd9fd0802342b0d352b564 authored by Sam Goto on 15 December 2018, 00:47:49 UTC
MojoInterfaceInterceptor tests for the IdleManager.
Tip revision: d9f55b3
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