Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / net / data / websocket / counted_connection.html
blobbb53ec1fa925b07486e3c8d268bf6b4004f1d4c0
1 <!doctype html>
2 <html>
3 <head>
4 <title>Connect to a WebSocket server</title>
5 <script type="text/javascript">
6 var protocol = location.protocol.replace('http', 'ws');
7 var url = protocol + '//' + location.host + '/count-connection';
8 var ws = new WebSocket(url);
10 ws.onopen = function() {
11 document.title = 'CONNECTED';
14 ws.onclose = function() {
15 document.title = 'CLOSED';
17 </script>
18 </head>
19 </html>