Add session keep alive. If client doesn't send a keep alive, after a

specified amount of time the scheduler closes the session
This commit is contained in:
Jonathan Leibiusky (@xetorthio)
2017-10-16 18:11:15 +02:00
parent 8769aa344a
commit 1b0d363ffe
5 changed files with 43 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ var (
SESSION_END = EventType("session end")
SESSION_READY = EventType("session ready")
SESSION_BUILDER_OUT = EventType("session builder out")
SESSION_KEEP_ALIVE = EventType("session keep alive")
)
type Handler func(sessionId string, args ...interface{})