change around pings, fix main.js so the actual real fucking number shows instead of it freaking out.
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]interface{}) error {
|
||||
|
||||
ts := extractTimestamp(envelope["ts"])
|
||||
if ts == 0 {
|
||||
ts, ok := extractTimestampIfPresent(envelope["ts"])
|
||||
if !ok {
|
||||
ts = time.Now().UnixMilli()
|
||||
}
|
||||
env.SetLastPong(time.Now().UnixMilli())
|
||||
|
||||
Reference in New Issue
Block a user