Skip to content

feat: browser & rn add WebSocketPlugin#143

Merged
wqcstrong merged 6 commits into
mainfrom
feat/websocket
Jul 15, 2025
Merged

feat: browser & rn add WebSocketPlugin#143
wqcstrong merged 6 commits into
mainfrom
feat/websocket

Conversation

@wqcstrong

@wqcstrong wqcstrong commented Jul 14, 2025

Copy link
Copy Markdown
Member

Related

Changes

  • Add separate WebsocketPlugin for Browser and React Native;

Usage

WebSocketPlugin is enabled by default, and after the upgrade, the websocket data will be there.
截屏2025-07-17 11 44 46

Disable plugin

However, if you are not interested in its data, or if the large amount of data affects the user experience, you can disable the plugin to turn it off.

const $pageSpy = new PageSpy({
  ...,
+ disabledPlugins: ["WebSocketPlugin"]
}) 

FAQ

Q: Why not avaiable in Miniprogram?

Mini programs are limited to only one WebSocket connection (some platforms allow up to two). PageSpy occupies one of them, which means the WebSocket plugin is currently unavailable in mini programs. However, we’ve already prepared it and will make its capabilities available once it becomes usable in the future.

@wqcstrong
wqcstrong merged commit e07c979 into main Jul 15, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望在Network中增加websocket的消息查看

1 participant