Archivo en la imagen del escritorio : index.html
Imagen del mensaje de error : Falló la conexión de WebSocket a 'wss://graphigostream.prd.dlive.tv/': connect @ index.html:9
Ruta del archivo: archivo:///C:/Users/.../Desktop/index.html
Código:
<!doctype html> <html> <head> </head> <script> function connect() { var ws = new WebSocket('wss://graphigostream.prd.dlive.tv/', "graphql-ws"); ws.onopen = function() { // ... }; ws.onmessage = function(e) { // ... } ws.onclose = function(e) { // ... }; ws.onerror = function(err) { // ... }; } connect() </script> <body> </body> </html>Quiero ejecutar este WebSocket a través de un archivo HTML, esta url funciona en Nodejs, otro sitio web tiene lo mismo y funciona, verifiqué "window.WebSocket"