| | |
| | | |
| | | <van-col span="3"> |
| | | <div style="text-align: right"> |
| | | {{ (item.gid || item.stockGid) == "nse" ? "NSE" : "BSE" }} |
| | | {{ (item.gid || item.stockGid).toUpperCase() }} |
| | | </div> |
| | | </van-col> |
| | | |
| | |
| | | refreshing: false, |
| | | }; |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | if (this.Trade) { |
| | | this.Trade.close(); |
| | | console.log('WebSocket disconnected'); |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.listArr = []; |
| | | this.pageNumVal = 1; |
| | |
| | | initWebSocket() { |
| | | console.log("initWebSocket"); |
| | | this.Trade = new WhrWebSocket({ |
| | | path: `wss://ws.ispentagon-institution.com/websocket-server`, |
| | | path: `wss://wss.amcfcxn.org/websocket-server`, |
| | | onmessage: this.getTradeMessage, |
| | | }); |
| | | |