Make a WebSocket example work with crawler.yt.lemnoslife.com
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user