Ticker data limit

pranabsen
pranabsen edited April 2022 in Node JS client
Hello , I am using kite ticket api [Nodejs] since 2 years .
From few days , i am not getting ticks , What is the max limit of number of instruments ?
If i use 10 instrumnts i am getting ticks , but when i am adding 50 [Nifty 50 ] instruments , i am getting error .
here is the errors i am getting
{ Error: close packets with data must be at least two bytes long
at Receiver.error (/home/node_modules/ws/lib/Receiver.js:321:18)
at /home/node_modules/ws/lib/Receiver.js:678:16
at Receiver.flush (/home/node_modules/ws/lib/Receiver.js:347:3)
at Receiver.finish (/home/node_modules/ws/lib/Receiver.js:698:12)
at Receiver. (/home/node_modules/ws/lib/Receiver.js:667:31)
at Receiver.add (/home/node_modules/ws/lib/Receiver.js:103:24)
at TLSSocket.realHandler (/home/node_modules/ws/lib/WebSocket.js:825:20)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
type: 'error',
target:
WebSocket {
domain: null,
_events:
{ open: [Object],
message: [Object],
error: [Object],
close: [Object] },
_eventsCount: 4,
_maxListeners: undefined,
_socket:
TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
_SNICallback: null,
servername: null,
npnProtocol: false,
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object],
_eventsCount: 8,
connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: 'ws.kite.trade',
_readableState: [Object],
readable: true,
domain: null,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
_bytesDispatched: 726557,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [Object],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Object],
read: [Function],
_consuming: true,
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1,
[Symbol(asyncId)]: 330,
[Symbol(bytesRead)]: 0 },
_ultron: Ultron { id: 9, ee: [Object] },
_closeReceived: false,
bytesReceived: 82,
readyState: 2,
supports: { binary: true },
extensions: {},
_binaryType: 'arraybuffer',
_isServer: false,
url: 'wss://ws.kite.trade/?api_key=XXXXXX&access_token=XXXXXX&uid=XXXXXX',
protocolVersion: 13,
_receiver:
Receiver {
fragmentedBufferPool: [Object],
unfragmentedBufferPool: [Object],
extensions: {},
maxPayload: 0,
currentPayloadLength: 0,
state: [Object],
overflow: [],
headerBuffer: ,
expectOffset: 0,
expectBuffer: null,
expectHandler: null,
currentMessage: [],
currentMessageLength: 0,
messageHandlers: [],
dead: false,
processing: true,
onerror: [Function: onerror],
ontext: [Function: ontext],
onbinary: [Function: onbinary],
onclose: [Function: onclose],
onping: [Function: onping],
onpong: [Function: onpong] },
_sender:
Sender {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_socket: [Object],
extensions: {},
firstFragment: true,
compress: false,
messageHandlers: [],
processing: false },
_closeCode: 1002,
_closeMessage: '',
_closeTimer:
Timeout {
_called: false,
_idleTimeout: 30000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 51634,
_onTimeout: [Function: bound cleanupWebsocketResources],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(asyncId)]: 361,
[Symbol(triggerAsyncId)]: 330 } } }


Please suggest , if i am doing anything wrong ?
This discussion has been closed.