blob: bb53ec1fa925b07486e3c8d268bf6b4004f1d4c0 [file] [log] [blame]
<!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>