mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 08:35:53 +03:00
[GH-ISSUE #1218] Map Remote for WebSocket requests? #1213
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JasonBoy on GitHub (May 1, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1218
Originally assigned to: @NghiaTranUIT on GitHub.
Not sure if this is supported, looks not when I try:
ws://a.com->ws://localhost:8000, on which the Status column show "Internal Error",so am i doing the right thing, or It should be a Feature request
@NghiaTranUIT commented on GitHub (May 1, 2022):
Unfortunately, Map Remote or any debugging proxy doesn't support WebSocket yet. I'm planing to support it soon 👍
@JasonBoy commented on GitHub (May 1, 2022):
thanks for the quick reply, it will be great if proxyman supports it in some of my cases 😃
@raxityo commented on GitHub (Jan 19, 2023):
Hi @NghiaTranUIT, eagerly waiting for this. The only reason why I have to keep CharlesProxy running in parallel. 😅
Do you have any other alternative suggestions in the meantime?
@NghiaTranUIT commented on GitHub (Jan 20, 2023):
I can do a quick implementation for this feature. @raxityo do you use WS or WSS ?
@raxityo commented on GitHub (Jan 20, 2023):
Wow, that would be amazing!
I use both: WSS for production & WS localhost mapped to production. 😊
@bt commented on GitHub (Feb 14, 2023):
Hey @NghiaTranUIT can I check the status of this feature? I'm also looking for Map Remote for WSS.
I used to use Charles, but have just recently moved to Proxyman, but disappointed to find out I can't map WSS to localhost for debugging purposes. Am back to Charles temporarily but would highly rather use Proxyman!
@NghiaTranUIT commented on GitHub (Feb 14, 2023):
Hey @bt. Sorry for the delay. I know the Map Remote for WS is essential. I'm working on it now 👍
@NghiaTranUIT commented on GitHub (Feb 15, 2023):
Just a friendly tag: @raxityo @bt @JasonBoy @helsonxiao @caojunkai01
Map Remote is working with WebSocket 👍
What's new:
How to config the Map Remote
Screenshot
WS Localhost to Production
WSS Production to Localhost
Result
@bt commented on GitHub (Feb 15, 2023):
Wow! That was quick!
I will test this right now and give some feedback. Thank you!
@helsonxiao commented on GitHub (Feb 15, 2023):
It's working with WebSocket now! Thanks!

If Map Remote can keep some query params unchanged, then I'll not use Charles anymore.
@bt commented on GitHub (Feb 15, 2023):
@NghiaTranUIT so far so good on initial usage, however, it seems like I just received my first crash.
@NghiaTranUIT commented on GitHub (Feb 15, 2023):
@bt can you try again? How % you can reproduce this crash 🤔
from what I see, the crash is from the internal AppKit.
@NghiaTranUIT commented on GitHub (Feb 15, 2023):
Do you mean that the Query is changed? and it's a bug 🤔
From your screenshot, you define the Map to Query, so your Query's URL is always changed to
room_id=.....-> It's a correct behavior.@bt commented on GitHub (Feb 15, 2023):
I'll continue to use Proxyman as it's definitely better than having to run dual-proxy (Charles for WSS + Proxyman for everything else). I'll see if I notice any specific way to cause the crash.
@bt commented on GitHub (Feb 15, 2023):
I somehow managed to cause the crash again. So, it seems that if there's an active Proxyman WSS map to remote connection, and then the server disconnects (ie. as a developer, I make changes to the server code and the WS server reloads), then Proxyman will crash.
There's so many threads I'm not sure which one I should give you, but I've attached a crash log. Hopefully it will help!
crashlog.txt
@NghiaTranUIT commented on GitHub (Feb 15, 2023):
Thanks @bt 🙇 I'm going to upload the dSYM file to decode your crash log. I suppose I can get somethings 👍
@helsonxiao commented on GitHub (Feb 15, 2023):
I only want to add
nocompression=1in this rule, but it'll override all query params so I have to define theroom_id=...for it. I think it's an expected behavior in this version so it's not a bug. Anyway, it's working now :)@NghiaTranUIT commented on GitHub (Mar 12, 2023):
@bt I've fixed the crash that you've mentioned 👍
Basically, if you map the Websocket to invalid host/port by using the Map Remote, the old build would be crashed ❌
You can try the Beta build here: https://github.com/ProxymanApp/Proxyman/issues/1573#issuecomment-1465078385
@bt commented on GitHub (Mar 12, 2023):
Thanks, I've been put to work on another project for the next couple of days temporarily so I won't be able to try the beta.
When will this be out in release?
@NghiaTranUIT commented on GitHub (Mar 12, 2023):
@bt It's released in the latest v4.4.0 15 mins ago 🎉
Don't worry to test it. I'm able to reproduce the crash and properly fix it 😄
@JasonBoy commented on GitHub (Apr 3, 2023):
@NghiaTranUIT just curious, does this ws map feature works for
Scripingtool? when i try the below, seems not work:wss://www.a.com->ws://127.0.0.1:8082@NghiaTranUIT commented on GitHub (Apr 3, 2023):
Sorry @JasonBoy, only Map Remote supports the WS/WSS. The Scripting hasn't supported yet 👍