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

Websocket #42

Open
lovepareek opened this issue Feb 8, 2022 · 0 comments
Open

Websocket #42

lovepareek opened this issue Feb 8, 2022 · 0 comments

Comments

@lovepareek
Copy link

Hi, Team i am trying to fetch some data from web socket api but whenever i hit the request it says data: {code: 400, message: 'Invalid request: could not parse message'} and here's my code

this[connection] = new WebSocket( wss://stream.wazirx.com/stream ); this[connection].onmessage = (evt) => { this[connection].send({event:'subscribe',streams:['btcinr@trade']}) let eventData = JSON.parse(evt.data)}

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

1 participant