ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.68k stars 187 forks source link

Add WebSocket Frame Message Hook Functions #2141

Open urionz opened 1 month ago

urionz commented 1 month ago

Description

We would like to request the addition of WebSocket frame message hook functions to enhance the customization capabilities in our scripts. Specifically, we propose adding the following methods:

onWSMsgInbound: This method would allow users to intercept and process incoming WebSocket frame messages before they are processed further. It provides an opportunity to manipulate or analyze the inbound messages according to specific requirements.

onWSMsgOutbound: This method would enable users to intercept and modify outgoing WebSocket frame messages before they are sent out. It offers a way to customize and tailor the outbound messages based on the desired logic.

The inclusion of these hook functions would significantly enhance the flexibility and control over WebSocket message handling within custom scripts. Users would be able to implement specific logic for processing both inbound and outbound messages, leading to more tailored and efficient WebSocket communication.

NghiaTranUIT commented 1 month ago

thanks for your proposal. I will keep this ticket open and soon implement it if there are more upvote from other users 👍

ThinkerT commented 1 month ago

This feature is very much needed, hope to add it as soon as possible.