Sha256: d38796b0636480a3eed74dcae5d18a6cabd389c1b9c89909b48ba58d0a0a0fbf
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
<html> <head> <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script> <script> $(document).ready(function(){ function debug(str){ $("#debug").append("<p>" + str); }; ws = new WebSocket("ws://localhost:8080/"); ws.onmessage = function(evt) { $("#msg").append("<p>"+evt.data+"</p>"); }; ws.onclose = function() { debug("socket closed"); }; ws.onopen = function() { debug("connected..."); ws.send("hello server"); ws.send("hello again"); }; }); </script> </head> <body> <div id="debug"></div> <div id="msg"></div> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-websocket-0.0.5 | examples/test.html |
em-websocket-0.0.4 | examples/test.html |