mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-15 17:22:44 +02:00
implement client heartbeat #460.
This commit is contained in:
parent
5169e0aad3
commit
3082d3241b
14 changed files with 62 additions and 7 deletions
|
@ -36,6 +36,10 @@ type MessageHandlerCtx struct {
|
|||
func (h *MessageHandlerCtx) Message(session types.Session, data types.WebSocketMessage) bool {
|
||||
var err error
|
||||
switch data.Event {
|
||||
// Client Events
|
||||
case event.CLIENT_HEARTBEAT:
|
||||
// do nothing
|
||||
|
||||
// System Events
|
||||
case event.SYSTEM_LOGS:
|
||||
payload := &message.SystemLogs{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue