summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.html b/test.html
index c8dc987..23f7524 100644
--- a/test.html
+++ b/test.html
@@ -5,8 +5,8 @@
var ws = new WebSocket("ws://localhost:9090");
console.log("initialized websocket");
ws.onmessage = function(evt) {
- console.log("received message:");
- console.log(evt);
+ console.log("received message");
+ console.log(evt.data);
};
ws.onopen = function() {
console.log("connected");