blob: f9809d60983f7235f81f8d8effbac148aae9dc92 [file] [log] [blame]
var sock = new WebSocket("ws://localhost:4000/");
sock.onmessage = function(m) { console.log("Received:", m.data); }
sock.send("Hello!\n")