File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,22 +220,23 @@ module.exports = class Client {
220220 * @prop {string } [location] Auth page location (For france: https://fr.tradingview.com/)
221221 */
222222
223- /** Client object
223+ /**
224+ * Client object
224225 * @param {ClientOptions } clientOptions TradingView client options
225226 */
226227 constructor ( clientOptions = { } ) {
227228 if ( clientOptions . DEBUG ) global . TW_DEBUG = clientOptions . DEBUG ;
228229
229230 const server = clientOptions . server || 'data' ;
230- this . #ws = new WebSocket ( `wss://${ server } .tradingview.com/socket.io/websocket?& type=chart` , {
231- origin : 'https://s .tradingview.com' ,
231+ this . #ws = new WebSocket ( `wss://${ server } .tradingview.com/socket.io/websocket?type=chart` , {
232+ origin : 'https://www .tradingview.com' ,
232233 } ) ;
233234
234235 if ( clientOptions . token ) {
235236 misc . getUser (
236237 clientOptions . token ,
237238 clientOptions . signature ? clientOptions . signature : '' ,
238- clientOptions . location ? clientOptions . location : " https://tradingview.com" ,
239+ clientOptions . location ? clientOptions . location : ' https://tradingview.com' ,
239240 ) . then ( ( user ) => {
240241 this . #sendQueue. unshift ( protocol . formatWSPacket ( {
241242 m : 'set_auth_token' ,
You can’t perform that action at this time.
0 commit comments