You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot get Websockets to work using the code example : const websocket = async () => { const ws = new WebSocket('wss://tennis.sportdevs.com/live/score?token={myapikey}', ['updates']) ws.addEventListener('message', ev => console.log(ev.data)) }
I get this error : Error: Unexpected server response: 401
Any idea how to make it work ?
Thank you in advance
The text was updated successfully, but these errors were encountered:
tominou
changed the title
Websocket not working ?
Websockets not working ?
Jul 26, 2024
Hi,
I cannot get Websockets to work using the code example :
const websocket = async () => { const ws = new WebSocket('wss://tennis.sportdevs.com/live/score?token={myapikey}', ['updates']) ws.addEventListener('message', ev => console.log(ev.data)) }
I get this error :
Error: Unexpected server response: 401
Any idea how to make it work ?
Thank you in advance
The text was updated successfully, but these errors were encountered: