Please tell me how the websocket for okx is requested.

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

请问okex的websocket怎么请求呀? function main(){ var param = { “op”: “subscribe”,
“args”: [
{
It's not just about the music, it's about the people. You can also find a link to this article. I'm not sure. I'm not sure. 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) { This is a list of all the different ways ws.write ((JSON.stringify ((param)) is credited in the database. var pingCyc is equal to 1000 times 20 var lastPingTime = new Date (().getTime (()) is the name of the 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 (sending: ping, #FF0000) I'm not sure. LogStatus ((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))) Sleep ((1000) is 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.