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..dcc45086ea6c2267ccbe470ed2cbc2a5677590c3 |
--- /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 scheme = location.protocol.replace('http', 'ws'); |
+var url = scheme + location.host + '/count-connection'; |
+var ws = new WebSocket(url); |
+ |
+ws.onopen = function() { |
+ document.title = 'CONNECTED'; |
+}; |
+ |
+ws.onclose = function() { |
+ document.title = 'CLOSED'; |
+}; |
+</script> |
+</head> |
+</html> |