Adding hello example/test.
This commit is contained in:
13
test/index.html
Normal file
13
test/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
var ws = new WebSocket("ws://localhost:8080/web-socket");
|
||||
ws.onmessage = function(evt) {
|
||||
alert(evt.data);
|
||||
};
|
||||
ws.onopen = function() {
|
||||
ws.send('Hello!');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user