Cloudflare worker previews use websockets to communicate with the devtools panel.
This is great.
Unfortunately, the format of specific messages has changed recently. In particular
preview has been removed from messages with
method: 'Runtime.consoleAPICalled'. This makes showing such log messages to users much more difficult - I’d have to send another
Runtime.getProperties message for every argument of every log message to get a good preview
Please could you:
- tell me if there’s some message I can send when first connecting to the websocket that means the
previewis included again?
- Tell me if there’s any formal documentation of this endpoint?
- consider formalising this websocket endpoint so it doesn’t change unexpectedly and has docs
@KentonVarda I imagine this is your domain?