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

subscribeBlocks & subscribeMempool Not Working #2146

Closed
dhwndud408 opened this issue Oct 28, 2024 · 0 comments
Closed

subscribeBlocks & subscribeMempool Not Working #2146

dhwndud408 opened this issue Oct 28, 2024 · 0 comments

Comments

@dhwndud408
Copy link

dhwndud408 commented Oct 28, 2024

Hi! dev teams.

I am making code with your api.
Here is my computer info.
Mac OS Sonoma14.4
Node 18.19.1
NPM 10.2.4
API version: 8.2.0

Here is the typescript code

import * as stacks from '@stacks/blockchain-api-client';
const socketUrl = "https://api.mainnet.hiro.so";
const socket = new stacks.StacksApiSocketClient({ url: socketUrl });

let client = await stacks.connectWebSocketClient('wss://api.mainnet.hiro.so/');


sub = await socket.subscribeBlocks((event) => {
   console.log(event)
}
sub = await socket.subscribeBlocks((event) => {
console.log(event)
}

After about 6 hours, the websocket stops.

I also see the this report.
#1885

The admin said it was resolved on above link, but it seems the issue has resurfaced with the Nakamoto update.

@github-project-automation github-project-automation bot moved this to 🆕 New in API Board Oct 28, 2024
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in API Board Oct 28, 2024
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in API Board Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant