Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: net/data/websocket/counted-connection.html

Issue 390773002: [WebSocket] Send a close frame when the renderer process is gone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698