Software /
code /
verse
Comparison
init.lua @ 444:12c1be0044c6
client: Send whitespace keeplives
This is to prevent net.server from timing out connections.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Jun 2021 16:43:36 +0200 |
parent | 424:eaaaf4495e06 |
child | 461:fa5c40e5e079 |
comparison
equal
deleted
inserted
replaced
443:89526c890363 | 444:12c1be0044c6 |
---|---|
242 | 242 |
243 function conn_listener.onstatus(conn, new_status) | 243 function conn_listener.onstatus(conn, new_status) |
244 stream:event("status", new_status); | 244 stream:event("status", new_status); |
245 end | 245 end |
246 | 246 |
247 function conn_listener.onreadtimeout(conn) | |
248 return stream:event("read-timeout"); | |
249 end | |
247 return conn_listener; | 250 return conn_listener; |
248 end | 251 end |
249 | 252 |
250 return verse; | 253 return verse; |