diff options
-rw-r--r-- | test.html | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |