The resource loading... loading...

Please tell me how the websocket for okx is requested.

Author: Quantitative gold, Created: 2021-07-05 14:18:21, Updated:

img function main(){ var param = { “op”: “subscribe”,
“args”: [
{
It's not just about the music, it's about the people. This is the first time I've ever seen this. I'm not sure. [Sighs] I'm not sure. // Specifies when the Dial function is calledreconnect=trueThis is set to a re-connect mode, specifyingpayloadThis is the message that is sent when the websocket is disconnected. var ws = Dial ((wss://wsaws.okex.com:8443/ws/v5/public incompress=gzip_raw&mode=recv&reconnect=true&+ JSON.stringify(param)) If ((ws) { ws.write ((JSON.stringify ((param)) var pingCyc is equal to 1000 times 20 var lastPingTime = new Date (().getTime (()) is the lastPingTime while(1) { var nowTime = new Date (().getTime (()) var ret = ws.read ()) Log (Ret: Hey, ret) if ((nowTime - lastPingTime > pingCyc) { var retPing = ws.write ((ping the button)) lastPingTime = nowTime Log (send: ping, #FF0000) is the name of the game. I'm not sure. LogStatus ((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))) Sleep ((1000) is the name of the I'm not sure. ws.close ((() I'm not sure. I'm not sure.

The question is, is there anyone who can give the correct code to request the product channel in the okx websocket interface, it is always out of time?


More

The grassYou need an overseas host, and don't use the debug tool to debug wss.