diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-23 18:39:29 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-23 18:39:29 -0400 |
commit | 1525c33ba5fceeb5558b98c9f6e197d28aaa8770 (patch) | |
tree | 8929ab7f0e7782c4a15ec43da59fda224fd227c1 /termcast_server/index.html | |
parent | a9197023946c36a406405338adb36102c179a3da (diff) | |
download | python-termcast-server-1525c33ba5fceeb5558b98c9f6e197d28aaa8770.tar.gz python-termcast-server-1525c33ba5fceeb5558b98c9f6e197d28aaa8770.zip |
stub out websockets code for the web viewer
Diffstat (limited to 'termcast_server/index.html')
-rw-r--r-- | termcast_server/index.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/termcast_server/index.html b/termcast_server/index.html new file mode 100644 index 0000000..e7cd8dd --- /dev/null +++ b/termcast_server/index.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> + <script> +var url = location.origin.replace(/^http/, 'ws') + "/-/"; +var socket = new WebSocket(url); +socket.onopen = function (e) { + // XXX +}; +socket.onmessage = function (e) { + // XXX +}; +socket.onclose = function (e) { + // XXX +}; + </script> +</head> +<body> + <h1>Hello World</h1> +</body> +</html> |