1"use strict";const marketlistSocket=function(){function a(){k=new WebSocket(q),k.onopen=function(){g(),b(k,"price.subscribe",global_price_watch_markets)},k.onerror=function(){console.log("ws Error "),c(),i()},k.onclose=function(){console.log("pro trade ws Closed "),c(),i()},k.onmessage=function(a){let b=JSON.parse(a.data);return"pong"===b.result?(h(),!1):void(r&&b&&b.method&&b.method==r&&console.log("[\u6307\u5B9A\u6D88\u606F("+r+")\u67E5\u8BE2]--->\uFF1A",b),"undefined"!=typeof b.method&&(b.params||b.result)&&PubSub.publish("TRADE_EVENT_"+b.method,b.params))}}function b(a,b,c,d){if(a||(a=k),a&&1==a.readyState){c||(c=[]);var e={id:d||j(1e7),method:b,params:c};a&&a.send(JSON.stringify(e))}}function c(b,c){c&&(o=!1);n||o||(n=!0,console.log("\u91CD\u8FDE\u589E\u52A0http\u8BF7\u6C42"),"undefined"!=typeof p&&clearTimeout(p),p=setTimeout(function(){a(q),n=!1},5e3))}function d(a){try{k&&k.send&&k.send("{\"method\":\""+a+".unsubscribe\", \"params\":[]}")}catch(b){console.log("unsubscribe err:"+a)}}function e(){try{k&&k.send&&1==k.readyState&&k.send("{\"method\":\"price.unsubscribe\", \"params\":[]}")}catch(a){}}function f(){try{k&&k.send&&1==k.readyState&&k.send("{\"method\":\"trades.unsubscribe\", \"params\":[]}")}catch(a){}}function g(){b(k,"server.ping"),m=setTimeout(()=>{i(),1===k.readyState?(console.log("pong too late, close connection..."),k.close(),c()):[2,3].includes(k.readyState)&&(console.log("pong too late, reconnect...."),c())},1e4)}function h(){clearTimeout(m),l=setTimeout(g,1e4)}function i(){l&&(clearTimeout(l),l=null)}function j(a){return Math.floor(Math.random()*Math.floor(a))}let k,l,m,n=!1,o=!1,p=null,q=getSpotWs();(window.location.href.includes("468")||window.location.href.includes("488")||window.location.href.includes("458"))&&(q=`wss://${window.location.host}/websocket`);let r=""==location.search?null:location.search.replace("?","");return{start_websocket:a,socket_send_cmd:b,unsubscribeByType:d,unsubscribeAll:e,closeSpotWebSocket:f,socket:k}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.