chromium/third_party/blink/web_tests/inspector-protocol/resources/websocket-initiator.html

<script>
var ws;
function createSocket() {
  ws = new WebSocket("ws://localhost:0000/WillFailToConnect");
}
</script>