order feed not working


  • Hi team
    I am trying to integrate order feed following this documentation - https://smartapi.angelbroking.com/docs/WebSocketOrderStatus

    I am getting following error when creating websocket connection

    node.js code snippet
    
    let init = (jwt)=>{
        let client = new (require("websocket").client)();
        client.on('connectFailed', function(error) {
            console.error('web socket', error);
        });
        let url = `wss://smartapisocket.angelbroking.com/websocket?jwttoken=${jwt}&clientcode=${CLIENT_ID}&apikey=${KEY}`
        client.connect(url)
    }
    

    Following error is thrown immediately :-

    web socket Error: socket hang up
        at connResetException (node:internal/errors:692:14)
        at TLSSocket.socketOnEnd (node:_http_client:478:23)
        at TLSSocket.emit (node:events:539:35)
        at endReadableNT (node:internal/streams/readable:1345:12)
        at processTicksAndRejections (node:internal/process/task_queues:83:21) {
      code: 'ECONNRESET'
    }
    

    client id - T185904


  • @tsingh said in order feed not working:

    I am getting following error when creating websocket connection

    I had the same issue

    @tsingh did you get any solutions yet. ?


  • @administrators
    @admin
    waiting for your response.
    Is this a known issue?