2

What is the best way to inspect Server-Sent Events when the browser receives them. I've only seen implementations where you simply do console.log(e), but that assumes your data is correct.

Is there a way to look at Server-Sent Events as you do with a 'View Source' type of inspection without using console.log?

4

2 回答 2

2

如果您想观看未经解析的原始数据,您可以使用 curl 连接到服务器发送事件流。

curl --no-buffer http://my.app/event_stream/
于 2012-12-13T00:57:40.273 回答
1

Firebug将记录所有发送的事件并使其可实时检查。

于 2012-11-26T21:24:29.660 回答