summaryrefslogtreecommitdiff
path: root/examples/websockets/echoserver/echoclient.html
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-04-11 14:17:49 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-04-11 14:17:49 +0200
commitf78a7049271e59238acfcad58fb4f7183d92cd1f (patch)
treeb87d1bf5a7a16a126a5d07e629aae591e1d27e4f /examples/websockets/echoserver/echoclient.html
parent258d019df60bc346a6fa89da694e52c4743dc18b (diff)
parent8b9836d0e00736b5a16f650667218612940e106b (diff)
downloadqtwebsockets-f78a7049271e59238acfcad58fb4f7183d92cd1f.tar.gz
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: Iff68a7da2065b64579032f1be8eaf5fb097d58bb
Diffstat (limited to 'examples/websockets/echoserver/echoclient.html')
-rw-r--r--examples/websockets/echoserver/echoclient.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/websockets/echoserver/echoclient.html b/examples/websockets/echoserver/echoclient.html
index e9c55dc..1edfb64 100644
--- a/examples/websockets/echoserver/echoclient.html
+++ b/examples/websockets/echoserver/echoclient.html
@@ -1,12 +1,12 @@
<html>
<head>
- <title>Websocket Echo Client</title>
+ <title>WebSocket Echo Client</title>
</head>
<body>
- <h1>Websocket Echo Client</h1>
+ <h1>WebSocket Echo Client</h1>
<p>
- <button onClick="initWebsocket();">Connect</button>
- <button onClick="stopWebsocket();">Disconnect</button>
+ <button onClick="initWebSocket();">Connect</button>
+ <button onClick="stopWebSocket();">Disconnect</button>
<button onClick="checkSocket();">State</button>
</p>
<p>
@@ -37,7 +37,7 @@
var wsUri = "ws://localhost:1234";
var websocket = null;
- function initWebsocket() {
+ function initWebSocket() {
try {
if (typeof MozWebSocket == 'function')
WebSocket = MozWebSocket;
@@ -62,7 +62,7 @@
}
}
- function stopWebsocket() {
+ function stopWebSocket() {
if (websocket)
websocket.close();
}
@@ -92,9 +92,9 @@
break;
}
}
- debug("Websocket state = " + websocket.readyState + " ( " + stateStr + " )");
+ debug("WebSocket state = " + websocket.readyState + " ( " + stateStr + " )");
} else {
- debug("Websocket is null");
+ debug("WebSocket is null");
}
}
</script>