i have two nodejs project. one of them using js and one of them using ts .
in js project i using the websocket for connect to tradingview for get price of currency .
the ts project is main project . i want to get prices of currency from 'js' project with websocket and use it in the main project .
now i dont know what is the best way for do this .
i have 2 Slution for this issue :
A - use the js project into the main project .
B - use the js project seprate of main project and connect them with redis-pub-sub .
please guide me for this issue . thanks