diff --git a/loginhandler.go b/loginhandler.go index 024c7ed..e3dbb85 100644 --- a/loginhandler.go +++ b/loginhandler.go @@ -40,7 +40,7 @@ func (h *loginHandler) handleMessage(ctx *msgContext) error { } case MsgHeartbeat: wsSess.activeTime = time.Now() - wsSess.write(MsgHeartbeat, 0, "") + wsSess.writeBuff(ctx.msg) // gLog.Printf(LvINFO, "%s heartbeat ok", wsSess.node) default: return nil