Giter VIP home page Giter VIP logo

Comments (7)

mihar avatar mihar commented on June 16, 2024 2

It mainly expands messages that are geared towards you. We will add documentation about it soon.

from coinbase-pro-node.

lejeunerenard avatar lejeunerenard commented on June 16, 2024 1

@michelem09 Websocket Authentication can be done when creating the websocket client by passing the authentication object as the third argument like so:

var Gdax = require('gdax');
var authentication = {
  secret: 'SECRET',
  key: 'KEY',
  passphrase: 'password'
};
var websocket = new Gdax.WebsocketClient(null, null, authentication);
websocket.on('message', function(data) { console.log(data); });

For more information on setting up authentication, checkout the API docs.

from coinbase-pro-node.

lejeunerenard avatar lejeunerenard commented on June 16, 2024 1

@mrstock it adds a few fields to the subscribe message including a signature. Why it passes these I am not sure since the documents never state to do so and there is no reason I can think of to authenticate the subscribe message.

@mihar can you shed some light on this?

from coinbase-pro-node.

mihar avatar mihar commented on June 16, 2024

Thanks for reporting, we will investigate

from coinbase-pro-node.

lejeunerenard avatar lejeunerenard commented on June 16, 2024

This error is caused when no authentication is given and auth.secret is attempted to be coerced/created as a Buffer. #19 fixes this issue allowing the subscribe message to be sent with or without being signed.

from coinbase-pro-node.

michelem09 avatar michelem09 commented on June 16, 2024

How can I use the websocket authenticated?

from coinbase-pro-node.

mrstock avatar mrstock commented on June 16, 2024

Can you please explain what's the difference between websocket authenticated and not ? Any difference on the received messages ?

Thank you

from coinbase-pro-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.