lipp / lua-websockets

Websockets for Lua.
http://lipp.github.com/lua-websockets/
MIT License
396 stars 113 forks source link

client:getpeername() but with websocket:client? #114

Open gitdhar opened 5 years ago

gitdhar commented 5 years ago

Is there an equivalent of client:getpeername() but with websocket:client? I have a monitoring program that periodically checks for the status of this websocket connection. If it is not connected, I reconnect. For this, I was trying to use client::getpeername() and use the return string to determine if the socket is healthy or not. Thanks