fix test and dispatcher for pings
This commit is contained in:
@@ -14,6 +14,8 @@ func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]inter
|
||||
if ts == 0 {
|
||||
ts = time.Now().UnixMilli()
|
||||
}
|
||||
env.SetLastPong(time.Now().UnixMilli())
|
||||
|
||||
pong := wire.Pong{Type: "pong", TS: ts}
|
||||
go func() {
|
||||
if err := wire.WriteMsg(ctx, env.Conn, pong); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user