mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-04 03:11:40 +00:00
web socket using tornado
This commit is contained in:
@@ -15,5 +15,14 @@
|
||||
<a class="nav-link" href="#">3D</a>
|
||||
</nav>
|
||||
</div>
|
||||
<script>
|
||||
var ws = new WebSocket("ws://localhost:8888/websocket");
|
||||
ws.onopen = function () {
|
||||
ws.send("hello");
|
||||
}
|
||||
ws.onmessage = function (ev) {
|
||||
alert(ev.data);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user