-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the start of recording/intercepting support #95
Conversation
nx g @nrwl/node:lib utils-logger --publishable --importPath @caribou-crew/mezzo-utils-logger
Currently it is a REST based instead of socket based way to capture and it doesn't monkeypatch
Consider moving most of the server side logic here to better distinguish between core-client and core-server (hosting vs making REST or socket requests) Core could then potentially be shared between both
@@ -0,0 +1,4 @@ | |||
{ | |||
"name": "@caribou-crew/mezzo-core-client", | |||
"version": "0.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge issue, but react
, react-dom
and react-test-renderer
all have the same version number. I can only assume this is so they can make sure everything is compatible with each other. Might be a good idea to do the same if we think we'll spend time writing migration/compatibility guides. I don't think we'll need to actively maintain both of these at the same time. So maybe it's not as important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's chat more im not ready to publish this package to npm yet anyway
Partially implements #94
High level
Under the hood mezzo uses sockets to communicate from RN <--> Mezzo server <--> Mezzo admin web.
Large concepts and even chunks of code were used from Reactotron (MIT license) in the RN integration layer as it is exactly what they do to capture network traffic.
It's a hefty PR and in many ways still a work in progress but if anyone wants to run with UI I don't anticipate any serious need to change the interfaces or data structures so we can always get this in while I continue polishing.