앱개발 관련 도움 요청

in #kr3 years ago (edited)

푸시 노티피케이션 구현을 위해서 스팀잇 블락데이터 스트림을 받으려고 하는데.. 동작을 안합니다. dsteem을 사용하는데..

혹시 사용하고 계신분 계신가요?

dsteem이나 steem-js로 구현하신분?

dsteem에서 rpc 서버 주소 넣고 stream 데이터 받는 간단한 코드인데, 하이브나 블러트는 되는데 스팀잇은 안됩니다..

뭔가 다른 방법으로 해야하는건지..

증상은 아래 코드에서 client 생성되고 stream.on 호츨이 안되고 계속 멈춰 있습니다. 에러도 없구요.

const dsteem = require('dsteem')

const client = new dsteem.Client('https://api.steemit.com')

const stream = client.blockchain.getOperationsStream({mode: dsteem.BlockchainMode.Latest})

참고 코드

https://github.com/jnordberg/dsteem/blob/master/examples/vote-bot/bot.js

Updates

아래 처럼 mode를 입력하지 않으면 됩니다.

const stream = client.blockchain.getOperationsStream({
  #mode: dhive.BlockchainMode.Latest,
});

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 63722.47
ETH 3049.10
USDT 1.00
SBD 4.03