Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websockets not working ? #1

Open
tominou opened this issue Jul 26, 2024 · 1 comment
Open

Websockets not working ? #1

tominou opened this issue Jul 26, 2024 · 1 comment

Comments

@tominou
Copy link

tominou commented 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

@tominou tominou changed the title Websocket not working ? Websockets not working ? Jul 26, 2024
@LaurenceM96
Copy link

I also have this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants