home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
428ee9d
)
Fix.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 22 Oct 2020 21:18:04 +0000
(23:18 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 22 Oct 2020 21:18:04 +0000
(23:18 +0200)
new2/websocket_client.html
patch
|
blob
|
history
diff --git
a/new2/websocket_client.html
b/new2/websocket_client.html
index e91e4efc3adb31ae732ade58c50cd0e7a92c6d68..9d3c7f0a6d06f5e05233bfb3f0cfaed90329a9a4 100644
(file)
--- a/
new2/websocket_client.html
+++ b/
new2/websocket_client.html
@@
-51,7
+51,7
@@
write(3, 3, "hallihallo");
drawBox(5, 25, 5, 5);
var websocket = new WebSocket(websocket_location);
-
exampleS
ocket.onmessage = function (event) {
+
webs
ocket.onmessage = function (event) {
write(2, 2, event.data);
}
@@
-65,7
+65,7
@@
document.addEventListener('keydown', (event) => {
case 'j': cursor[0] += 1; break;
case 'k': cursor[0] -= 1; break;
case 'l': cursor[1] += 1; break;
- case 'x':
exampleS
ocket.send('test');
+ case 'x':
webs
ocket.send('test');
}
write(cursor[0], cursor[1], '@');
}, false);