tradingview-api-adapter icon indicating copy to clipboard operation
tradingview-api-adapter copied to clipboard

Unable to close ws connection

Open plq opened this issue 2 years ago • 0 comments

Even after calling pause(), netstat shows that node has a connection open. Also, node process doesn't exit.

Context: https://github.com/plq/seker/blob/ef15ce43028b8fe6372d2460da6710b434b5a236/main.js#L102

To test:

git clone https://github.com/plq/seker
cd seker
./install.sh
node main.js cmd '!tview BTCUSD'

observe that the process stays up.

Any suggestions?

Disclaimer: this is my first node project ever

PS: Also, any suggestions about auto-filling the symbol => source mapping here: https://github.com/plq/seker/blob/ef15ce43028b8fe6372d2460da6710b434b5a236/main.js#L94 ?

plq avatar Mar 07 '23 09:03 plq