1、优化websocket连接

This commit is contained in:
2025-09-19 15:42:51 +08:00
parent 7adba048c8
commit 556a32cb7c
4 changed files with 331 additions and 103 deletions

View File

@ -15,7 +15,7 @@ import (
- @msg 消息内容
- @listenType 订阅类型 0-现货 1-合约
*/
func ReceiveListen(msg []byte, listenType int) (reconnect bool, err error) {
func ReceiveListen(msg []byte, listenType int, apiKey string) (reconnect bool, err error) {
var dataMap map[string]interface{}
err = sonic.Unmarshal(msg, &dataMap)