cloudflare / cloudflare/workerd

Unable to distinguish tail message type from the websocket message payload

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

Description

### What version of `Wrangler` are you using?

0.0.0

### What operating system are you using?

Mac

### Describe the Bug

(sent here from the #do-alarms Discord channel by Matt @ cloudflare)

Please add a new field to every tail websocket wire protocol message to distinguish the various contexts now present in workers. Right now it is impossible to always tell the difference between eyeball requests, DO requests, cron requests, and now DO alarm requests [*].

Could be a type code number if necessary to keep the payload small.

Would be immediately useful, thanks! I don't use wrangler, but use the WS directly.

\* strictly speaking cron requests can be identified by the payload properties, but the others are often ambiguous

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.