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

getOperationsStream() does not stream on mode: BlockchainMode.Latest #36

Open
eastmaels opened this issue Dec 6, 2018 · 0 comments
Open

Comments

@eastmaels
Copy link

eastmaels commented Dec 6, 2018

I tried the following codes but it seems that blocks are not returned as 'data' by the stream.

const dsteem = require("dsteem")

// Steem Init
const client = new dsteem.Client('https://api.steemit.com')
let stream = client.blockchain.getOperationsStream({ mode: dsteem.BlockchainMode.Latest })

// Stream Steem Blockchain
stream.on('data', (operation) => {
  console.log('operation', operation)
})  // end: stream.on()
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