diff --git a/parts/net.lua b/parts/net.lua index 1ae639c7..2d5a832d 100644 --- a/parts/net.lua +++ b/parts/net.lua @@ -75,6 +75,12 @@ local function _parse(res) end end +--Parse notice +local function _parseNotice(str) + str=STRING.split(str,"///") + return str[SETTING.lang<=3 and 1 or 2]or str[1] +end + --WS close message local function _closeMessage(message) local mes=JSON.decode(message) @@ -86,7 +92,7 @@ local function _closeMessage(message) end --Remove player when leave -local function removePlayer(L,sid) +local function _removePlayer(L,sid) for i=1,#L do if L[i].sid==sid then rem(L,i) @@ -96,7 +102,7 @@ local function removePlayer(L,sid) end --Push stream data to players -local function pumpStream(d) +local function _pumpStream(d) if d.uid~=USER.uid then for _,P in next,PLAYERS do if P.uid==d.uid then @@ -399,7 +405,7 @@ function NET.updateWS_app() if VERSION.code