From Insensitive Gorilla, 6 Months ago, written in Text.
Embed
  1. LTC-EUR
  2. WebsocketClient {
  3.   domain: null,
  4.   _events: {},
  5.   _eventsCount: 0,
  6.   _maxListeners: undefined,
  7.   productIDs: [ 'LTC-EUR' ],
  8.   websocketURI: 'https://api-public.sandbox.gdax.com',
  9.   auth:
  10.    { key: 'xxxxxxxxxxxxxxxxxx',
  11.      secret: 'xxxxxxxxxxxxxxxx',
  12.      passphrase: 'xxxxxxxxxxx' },
  13.   channels: [ 'ticker', 'heartbeat' ],
  14.   socket:
  15.    WebSocket {
  16.      domain: null,
  17.      _events:
  18.       { message: [Function: bound onMessage],
  19.         open: [Function: bound onOpen],
  20.         close: [Function: bound onClose],
  21.         error: [Function: bound onError] },
  22.      _eventsCount: 4,
  23.      _maxListeners: undefined,
  24.      readyState: 0,
  25.      bytesReceived: 0,
  26.      extensions: {},
  27.      protocol: '',
  28.      _binaryType: 'nodebuffer',
  29.      _finalize: [Function: bound finalize],
  30.      _finalizeCalled: false,
  31.      _closeMessage: null,
  32.      _closeTimer: null,
  33.      _closeCode: null,
  34.      _receiver: null,
  35.      _sender: null,
  36.      _socket: null,
  37.      _ultron: null,
  38.      protocolVersion: 13,
  39.      _isServer: false,
  40.      url: 'https://api-public.sandbox.gdax.com',
  41.      _req:
  42.       ClientRequest {
  43.         domain: null,
  44.         _events: [Object],
  45.         _eventsCount: 4,
  46.         _maxListeners: undefined,
  47.         output: [Array],
  48.         outputEncodings: [Array],
  49.         outputCallbacks: [Array],
  50.         outputSize: 236,
  51.         writable: true,
  52.         _last: true,
  53.         upgrading: true,
  54.         chunkedEncoding: false,
  55.         shouldKeepAlive: true,
  56.         useChunkedEncodingByDefault: false,
  57.         sendDate: false,
  58.         _removedConnection: false,
  59.         _removedContLen: false,
  60.         _removedTE: false,
  61.         _contentLength: 0,
  62.         _hasBody: true,
  63.         _trailer: '',
  64.         finished: true,
  65.         _headerSent: true,
  66.         socket: null,
  67.         connection: null,
  68.         _header: 'GET / HTTP/1.1\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Key: wi/m7XnVHXT+911oQ6n6NQ==\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nSec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\nHost: api-public.sandbox.gdax.com\r\n\r\n',
  69.         _onPendingData: [Function: noopPendingOutput],
  70.         agent: [Object],
  71.         socketPath: undefined,
  72.         timeout: undefined,
  73.         method: 'GET',
  74.         path: '/',
  75.         _ended: false,
  76.         res: null,
  77.         aborted: undefined,
  78.         timeoutCb: null,
  79.         upgradeOrConnect: false,
  80.         parser: null,
  81.         maxHeadersCount: null,
  82.         [Symbol(outHeadersKey)]: [Object] } } }
  83.                
  84. Error: unexpected server response (400)
  85.     at ClientRequest._req.on (D:\dev\byapar\node_modules\ws\lib\WebSocket.js:649:26)
  86.     at emitOne (events.js:116:13)
  87.     at ClientRequest.emit (events.js:211:7)
  88.     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:551:21)
  89.     at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
  90.     at TLSSocket.socketOnData (_http_client.js:440:20)
  91.     at emitOne (events.js:116:13)
  92.     at TLSSocket.emit (events.js:211:7)
  93.     at addChunk (_stream_readable.js:263:12)
  94.     at readableAddChunk (_stream_readable.js:250:11)
  95.