不再错误处理pong消息
This commit is contained in:
@@ -1121,6 +1121,7 @@ do
|
|||||||
if message then
|
if message then
|
||||||
if op=="ping"then
|
if op=="ping"then
|
||||||
WS.send("app",message,"pong")
|
WS.send("app",message,"pong")
|
||||||
|
elseif op=="pong"then
|
||||||
elseif op=="close"then
|
elseif op=="close"then
|
||||||
message=JSON.decode(message)
|
message=JSON.decode(message)
|
||||||
if message then
|
if message then
|
||||||
@@ -1155,6 +1156,7 @@ do
|
|||||||
if message then
|
if message then
|
||||||
if op=="ping"then
|
if op=="ping"then
|
||||||
WS.send("user",message,"pong")
|
WS.send("user",message,"pong")
|
||||||
|
elseif op=="pong"then
|
||||||
elseif op=="close"then
|
elseif op=="close"then
|
||||||
message=JSON.decode(message)
|
message=JSON.decode(message)
|
||||||
if message then
|
if message then
|
||||||
@@ -1207,6 +1209,7 @@ do
|
|||||||
if message then
|
if message then
|
||||||
if op=="ping"then
|
if op=="ping"then
|
||||||
WS.send("chat",message,"pong")
|
WS.send("chat",message,"pong")
|
||||||
|
elseif op=="pong"then
|
||||||
elseif op=="close"then
|
elseif op=="close"then
|
||||||
message=JSON.decode(message)
|
message=JSON.decode(message)
|
||||||
if message then
|
if message then
|
||||||
@@ -1230,6 +1233,7 @@ do
|
|||||||
if message then
|
if message then
|
||||||
if op=="ping"then
|
if op=="ping"then
|
||||||
WS.send("play",message,"pong")
|
WS.send("play",message,"pong")
|
||||||
|
elseif op=="pong"then
|
||||||
elseif op=="close"then
|
elseif op=="close"then
|
||||||
message=JSON.decode(message)
|
message=JSON.decode(message)
|
||||||
if message then
|
if message then
|
||||||
@@ -1255,6 +1259,7 @@ do
|
|||||||
if message then
|
if message then
|
||||||
if op=="ping"then
|
if op=="ping"then
|
||||||
WS.send("stream",message,"pong")
|
WS.send("stream",message,"pong")
|
||||||
|
elseif op=="pong"then
|
||||||
elseif op=="close"then
|
elseif op=="close"then
|
||||||
message=JSON.decode(message)
|
message=JSON.decode(message)
|
||||||
if message then
|
if message then
|
||||||
|
|||||||
Reference in New Issue
Block a user