| Index: net/data/websocket/counted-connection.html
|
| diff --git a/net/data/websocket/counted-connection.html b/net/data/websocket/counted-connection.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bb53ec1fa925b07486e3c8d268bf6b4004f1d4c0
|
| --- /dev/null
|
| +++ b/net/data/websocket/counted-connection.html
|
| @@ -0,0 +1,19 @@
|
| +<!doctype html>
|
| +<html>
|
| +<head>
|
| +<title>Connect to a WebSocket server</title>
|
| +<script type="text/javascript">
|
| +var protocol = location.protocol.replace('http', 'ws');
|
| +var url = protocol + '//' + location.host + '/count-connection';
|
| +var ws = new WebSocket(url);
|
| +
|
| +ws.onopen = function() {
|
| + document.title = 'CONNECTED';
|
| +};
|
| +
|
| +ws.onclose = function() {
|
| + document.title = 'CLOSED';
|
| +};
|
| +</script>
|
| +</head>
|
| +</html>
|
|
|