Make a WebSocket example work with crawler.yt.lemnoslife.com

This commit is contained in:
2023-01-31 01:05:09 +01:00
parent 155d372186
commit 0dba8e0c7d
2 changed files with 6 additions and 13 deletions

View File

@@ -13,8 +13,7 @@ See <?php echoUrl('https://gitea.lemnoslife.com/Benjamin_Loison/YouTube_captions
<button>Search</button>
<script>
// Then some JavaScript in the browser:
var conn = new WebSocket('ws://localhost:8080/echo');
var conn = new WebSocket('wss://crawler.yt.lemnoslife.com:443/websocket');
conn.onmessage = function(e) { console.log(e.data); };
conn.onopen = function(e) { conn.send('Hello Me!'); };
</script>