lipp / lua-websockets

Websockets for Lua.

Home Page:http://lipp.github.com/lua-websockets/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ive been wandering why didnt you guys set a heartbeat (ping pong)

Saint-Theana opened this issue · comments

At the start ,I use a regular ev websocket client ,and I did connected with server,but some time latter,connection closed.
When I add folowing code into client_ev.lua,problem solved.

101    elseif opcode == frame.PING then
102          self:send("PONG",frame.PONG);
103          print("respone pong");