Skip to content

Websocket listen no longer works #88

@sschueller

Description

@sschueller

Using the example code from the documentation (https://developer.bitcoin.com/slp/docs/js/socket). I no longer get mempool entries. If I do the same query at https://slpsocket.bitcoin.com/channel I get entries. Making a query for "transactions" works fine.

Using version: 4.15.0

yarn init
yarn add slp-sdk
let SLPSDK = require('slp-sdk');
let SLP = new SLPSDK();

let socket = new SLP.Socket({
    callback: () => {
        console.log("connected")
    },
    wsURL: "wss://ws.bitcoin.com"
});
socket.listen(
    {
        v: 3,
        q: { find: {} }
    },
    msg => {
        console.log(msg)
    }
);

Any ideas?

Bitbox sdk works fine:

yarn init
yarn add bitbox-sdk 
let BITBOX = require('bitbox-sdk').BITBOX;
let bitbox = new BITBOX();

let socket = new bitbox.Socket({
    callback: () => {
      console.log("connected")
    },
    wsURL: "wss://ws.bitcoin.com"
  })
  socket.listen(
    {
      v: 3,
      q: { find: {} }
    },
    msg => {
        console.log(msg)
    }
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions