question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can not get websockets endpoint

See original GitHub issue

Use this code:

// List all endpoints
let endpoints = binance.websockets.subscriptions();
for ( let endpoint in endpoints ) {
	console.log(endpoint);
	//binance.websockets.terminate(endpoint);
}

And don’t get anything, absolutely nothing. If I try to get the whole object through an async function, always get { }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jaggedsoftcommented, Feb 25, 2020

where is your callback function? all the examples are given like this:

binance.websockets.miniTicker(markets => {
  console.log(markets);
});

if you don’t like this library then try a different one https://github.com/Ashlar/binance-api-node

0reactions
bminocommented, May 19, 2020

Looks like you’ve done some good research here! I tried to replicate your issue and could not. Is this still happening for you?

I ran your snippet of code against version 0.11.4 of the API and it executed as expected

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web application using websockets “Could not establish ...
Problem resolved, though I don't understand the cause. Recall: the web application ran fine on development PC deployed to Tomcat version ...
Read more >
How do I troubleshoot WebSocket issues in Agents (All ...
The purpose of this article is to provide information on troubleshooting WebSocket issues with Agents in AM. This information applies to ...
Read more >
Cannot get WebSocket endpoint from HanaCloud
Hello,. I am using websockets in my SAP HCP Java application. Regarding some blogs, it is supposed to work. Actually all is working...
Read more >
Cannot connect to Websocket but the "endpoint" is running
Hello, I am back.. This is the start of my code: @ServerEndpoint("/server/") public class Server { @OnOpen public void onOpen(Session ...
Read more >
Re: Websocket can not find the endpoint - Oracle
Re: Websocket can not find the endpoint. This message : [ Message body ] [ More ... INFO: Registering WebSocket filter for url...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found