feat: structured WebSocket frame view with direction, type, size and filters - #94
Merged
Conversation
…filters - WsFrame now carries frame type (text/binary/close) and byte size; frames are exposed via WsInspectorService.framesFor (with lazy eviction of trimmed sessions). - Network detail renders a WebSocket frame list (sent/received filter, auto-scroll) instead of a flat text blob. - Add WsInspectorService unit tests and dartdoc for the new public API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
Add a structured WebSocket frame viewer (direction, frame type, size, sent/received filters) and bump the package to 1.8.0. / 新增结构化 WebSocket 帧视图(方向、帧类型、大小、收发筛选),并将包版本提升至 1.8.0。
Changes / 变更
WsFramewith frame type (text/binary/close) and byte size; expose frames viaWsInspectorService.framesForwith lazy eviction of trimmed sessions. / 为WsFrame增加帧类型与字节大小,并通过WsInspectorService.framesFor暴露,对裁剪会话做惰性淘汰。WsInspectorServiceand dartdoc for the new public API. / 为WsInspectorService增加单元测试并补充新增公共 API 的 dartdoc。pubspec.yaml,ios/zero_inspector_kit.podspec, README, CHANGELOG and the docs site. / 在pubspec.yaml、podspec、README、CHANGELOG 及文档站同步版本至 1.8.0。WidgetTreeService.isEnabled. / 为WidgetTreeService.isEnabled补充缺失的 dartdoc。Context / 背景
WebSocket traffic was previously shown as an unusable flat text blob in the network inspector; this makes individual frames inspectable by direction, type and size. / 此前网络检查器里的 WebSocket 流量只是难以阅读的纯文本块,本次改动让每帧可按方向、类型、大小查看。
Checklist / 检查项
Test plan
flutter testand confirmws_inspector_service_testpasses. / 运行flutter test确认ws_inspector_service_test通过。🤖 Generated with Zero Buddy