local data=love.data local rem=table.remove local WS,TIME=WS,TIME local yield=YIELD local NET={ connected=false, allow_online=false, accessToken=false, roomList={}, roomInfo={ -- rid=false, name=false, -- type=false, private=false, -- count=false, capacity=false, }, allReady=false, connectingStream=false, streamRoomID=false, serverGaming=false, UserCount="_", PlayCount="_", StreamCount="_", } local mesType={ Connect=true, Self=true, Broadcast=true, Private=true, Server=true, } --Lock & Unlock submodule local locks do local rawset=rawset locks=setmetatable({},{ __index=function(self,k)rawset(self,k,-1e99)return -1e99 end, __newindex=function(self,k)rawset(self,k,-1e99)end, }) end function NET.lock(name,T) if TIME()>=locks[name]then locks[name]=TIME()+(T or 1e99) return true else return false end end function NET.unlock(name) locks[name]=-1e99 end function NET.getlock(name) return TIME()=res.lowest then NET.allow_online=true if USER.authToken then NET.wsconn_user_token(USER.uid,USER.authToken) end end if VERSION.code