diff options
Diffstat (limited to 'examples/websockets/simplechat')
-rw-r--r-- | examples/websockets/simplechat/chatclient.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/websockets/simplechat/chatclient.html b/examples/websockets/simplechat/chatclient.html index 5b077f7..511d05b 100644 --- a/examples/websockets/simplechat/chatclient.html +++ b/examples/websockets/simplechat/chatclient.html @@ -1,12 +1,12 @@ <html> <head> - <title>Websocket Chat Client</title> + <title>WebSocket Chat Client</title> </head> <body> - <h1>Websocket Chat Client</h1> + <h1>WebSocket Chat 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> @@ -41,7 +41,7 @@ var wsUri = "ws://localhost:1234"; var websocket = null; - function initWebsocket() { + function initWebSocket() { try { if (typeof MozWebSocket == 'function') WebSocket = MozWebSocket; @@ -66,7 +66,7 @@ } } - function stopWebsocket() { + function stopWebSocket() { if (websocket) websocket.close(); } @@ -96,9 +96,9 @@ break; } } - debug("Websocket state = " + websocket.readyState + " ( " + stateStr + " )"); + debug("WebSocket state = " + websocket.readyState + " ( " + stateStr + " )"); } else { - debug("Websocket is null"); + debug("WebSocket is null"); } } </script> |