parent
9fe77e49a2
commit
3a42e20cf1
@ -697,8 +697,8 @@ const init = async () => {
|
|||||||
|
|
||||||
ws.on("message", function incoming(data) {
|
ws.on("message", function incoming(data) {
|
||||||
const res = JSON.parse(data.toString());
|
const res = JSON.parse(data.toString());
|
||||||
if (res.blocks) {
|
if (res.block) {
|
||||||
console.log(res.blocks);
|
console.log(res.block);
|
||||||
}
|
}
|
||||||
if (res.mempoolInfo) {
|
if (res.mempoolInfo) {
|
||||||
console.log(res.mempoolInfo);
|
console.log(res.mempoolInfo);
|
||||||
@ -730,8 +730,8 @@ const init = async () => {
|
|||||||
|
|
||||||
ws.addEventListener('message', function incoming({data}) {
|
ws.addEventListener('message', function incoming({data}) {
|
||||||
const res = JSON.parse(data.toString());
|
const res = JSON.parse(data.toString());
|
||||||
if (res.blocks) {
|
if (res.block) {
|
||||||
console.log(res.blocks);
|
console.log(res.block);
|
||||||
}
|
}
|
||||||
if (res.mempoolInfo) {
|
if (res.mempoolInfo) {
|
||||||
console.log(res.mempoolInfo);
|
console.log(res.mempoolInfo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user