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

Side by Side Diff: net/data/websocket/count_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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/data/websocket/count-connection_wsh.py ('k') | net/data/websocket/counted_connection.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
9 // Do connection test.
10 var ws = new WebSocket(url);
11
12 ws.onmessage = function(e) {
13 document.title = (e.data === 'open: 1, closed: 1' ? 'PASS' : 'FAIL');
14 }
15
16 ws.onclose = function() {
17 document.title = 'FAIL';
18 };
19
20 </script>
21 </head>
22 </html>
OLDNEW
« no previous file with comments | « net/data/websocket/count-connection_wsh.py ('k') | net/data/websocket/counted_connection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698