完成新手试炼接口调试
This commit is contained in:
@@ -30,7 +30,10 @@ function createWebSocket(token, onMessage) {
|
||||
}
|
||||
|
||||
function closeWebSocket() {
|
||||
if (socket) socket.close();
|
||||
if (socket) {
|
||||
socket.close();
|
||||
stopHeartbeat();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user