https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 59d04fc8fedbc0df8b8ced64d83c04fa12391099 authored by Simon Pieters on 22 March 2016, 08:59:52 UTC
Test websocket close event .code for codeless close frame
Tip revision: 59d04fc
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