SPB Git

Repository Public

ws.html 310 B 8 lines html

1<!doctype html>2<html><head><meta charset="utf-8"><title>WebSocket</title></head>3<body><p id="out">WS-PENDING</p>4<script>5const ws = new WebSocket('ws://' + location.host + '/ws?token=WSSECRET');6ws.onmessage = (e) => { document.getElementById('out').textContent = 'WS-' + e.data; };7</script></body></html>8
Files main
Menu

Theme