基本完成app和user的ws,加载完成时连接更多ws

This commit is contained in:
MrZ626
2021-03-27 23:50:37 +08:00
parent 8ca05bbb43
commit 8891367791
2 changed files with 121 additions and 122 deletions

View File

@@ -179,13 +179,15 @@ local loadingThread=coroutine.create(function()
--Connect to server
TASK.new(TICK_WS_app)
--[[TODO
WS.send("user",JSON.encode{
TASK.new(TICK_WS_user)
TASK.new(TICK_WS_chat)
if USER.authToken then
WS.connect("user","/user",JSON.encode{
id=USER.id,
authToken=USER.authToken,
})
]]
end
while true do
if math.random()<.126 then
upFloor()