cloudflare / cloudflare/workerd

🐛 Bug Report — `.getWebSocketAutoResponseTimestamp()` not returning the correct timestamp

Open
#2,025 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

The return value of the `state.getWebSocketAutoResponseTimestamp()` method doesn't return the correct timestamp in production. It does, however, work locally.

### Minimal replication

Here is a minimal replication of the bug. See the README for instructions:
[https://github.com/nvie/cloudflare-repros/tree/gwsart-bug](https://github.com/nvie/cloudflare-repros/tree/gwsart-bug?tab=readme-ov-file#the-replication)

### Video of the replication

[![Screen Shot 2024-04-16 at 14 59 21@2x](https://github.com/cloudflare/workerd/assets/83844/267acdfd-8790-4b2c-80db-15ada8bfe7bc)](https://share.cleanshot.com/nzVS2sMSHgz7YLcrTdXZ)

### More Context
This [Discord thread](https://discord.com/channels/595317990191398933/773219443911819284/1227145594070634568).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.