Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.
This repository was archived by the owner on May 1, 2018. It is now read-only.

listen() not working again #137

@thechile

Description

@thechile

Hi again

It seems #88 is back again :(

    wsclient.serviceHandlers.connected = function () {

        console.log('Bittrex Websocket connected !')

        bittrex.websockets.listen(function(data, client) {
            if (data.M === 'updateSummaryState') {
                data.A.forEach(function(data_for) {
                    data_for.Deltas.forEach(function(marketsDelta) {
                        console.log('Ticker Update for '+ marketsDelta.MarketName, marketsDelta)
                    })
                })
            }else{
                console.log(`data.M: ${data.M}`)
            }
        })
}

Just gives me

Bittrex Websocket connected !
data.M: undefined
data.M: undefined
data.M: undefined
data.M: undefined
data.M: undefined
data.M: undefined
data.M: undefined
data.M: undefined
data.M: undefined

And if i try the previous fix i.e.

wsclient.call('CoreHub', 'querySummaryState').done(function (err, result) {

Then it only gives me back the summaries info but no socket feed.

Anyone else have this failure ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions