1
0
mirror of https://github.com/kepler155c/opus synced 2026-02-28 04:39:45 +00:00

peripheral overhaul

This commit is contained in:
kepler155c@gmail.com
2018-01-06 22:25:33 -05:00
parent 911fec9118
commit 13ec8ea04f
7 changed files with 49 additions and 27 deletions

View File

@@ -37,6 +37,7 @@ function socketClass:read(timeout)
break
end
timerId = os.startTimer(5)
self:ping()
end
end
end
@@ -54,10 +55,7 @@ end
function socketClass:ping()
if self.connected then
_G.transport.write(self, {
type = 'PING',
seq = self.wseq,
})
_G.transport.ping(self)
return true
end
end