Error:SyntaxError: An invalid or duplicated subprotocol was specified
-
I am Running Below Code
let web_socket = new WebSocketClient({ clientcode: CLIENT_ID, jwttoken: JWTTOKEN, apikey: API_KEY, feedtype: "order_feed", }); web_socket.connect().then(() => { var ACTION_TYPE = "subscribe"; var FEED_TYPE = "order_feed"; console.log("Connected to Web Socket"); web_socket.fetchData(ACTION_TYPE, FEED_TYPE); // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed setTimeout(function () { web_socket.close(); }, 60000); }); web_socket.on("tick", receiveTick); function receiveTick(data) { console.log("receiveTick:::::", data); }
Get this error
throw new SyntaxError( ^ SyntaxError: An invalid or duplicated subprotocol was specified
Please help