Commit 18ff6cf4 authored by Sam Rushing's avatar Sam Rushing

tyops

parent 8c2a8f30
...@@ -82,7 +82,7 @@ $(function () { ...@@ -82,7 +82,7 @@ $(function () {
}; };
/** /**
* Send mesage when user presses Enter key * Send message when user presses Enter key
*/ */
input.keydown(function(e) { input.keydown(function(e) {
if (e.keyCode === 13) { if (e.keyCode === 13) {
...@@ -112,8 +112,9 @@ $(function () { ...@@ -112,8 +112,9 @@ $(function () {
setInterval(function() { setInterval(function() {
if (connection.readyState !== 1) { if (connection.readyState !== 1) {
status.text('Error'); status.text('Error');
input.attr('disabled', 'disabled').val('Unable to comminucate ' input.attr('disabled', 'disabled').val(
+ 'with the WebSocket server.'); 'Unable to communicate with the WebSocket server.'
);
} }
}, 3000); }, 3000);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment