Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://bottlepy.org/docs/dev/async.html
- <!DOCTYPE html>
- <html>
- <head>
- <script type="text/javascript">
- var ws = new WebSocket("ws://example.com:8080/websocket");
- ws.onopen = function()
- {
- ws.send("Hello, world"); };
- ws.onmessage = function (evt)
- { alert(evt.data); };
- </script>
- </head>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement