'How do i connect to websocket URL from website?
i'm trying to get the update values from website, i manage to connect but i cant get the values, i dont know if i'm doing anything wrong.
this is what i'm trying to do, maybe this url is not complete, but i dont know how to get the full URL. when i try to conect i dont recieve anything, i read the coments i will try to send something to this websocket
you need click in this button to show the entry hall
const WebSocket = require('ws')
const ws = new WebSocket('wss://eurolive-frontend.playtechgaming.com/ws')
ws.onmessage = (event) =>{
console.log(event.data)
}
ws.onerror = (erro)=>{
console.log(erro)
}```
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
