fixed persistence error and error with clients sometimes not showing up as connected.
This commit is contained in:
@@ -9,6 +9,8 @@ import (
|
||||
)
|
||||
|
||||
func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]interface{}) error {
|
||||
env.SetLastPong(time.Now().UnixMilli())
|
||||
|
||||
ts := extractTimestamp(envelope["ts"])
|
||||
if ts == 0 {
|
||||
ts = time.Now().UnixMilli()
|
||||
|
||||
Reference in New Issue
Block a user