修改可能导致ws尝试发送数字消息然后报错的一处代码

This commit is contained in:
MrZ626
2021-04-12 21:38:20 +08:00
parent 53dde3ec9e
commit 0645cec207
2 changed files with 3 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ function NET.register(username,email,password)
end
end
function NET.pong(wsName,message)
WS.send(wsName,message,"pong")
WS.send(wsName,type(message)=="string"and message or"","pong")
end
function NET.getAccessToken()
if NET.lock("access_and_login",10)then