-
-
Notifications
You must be signed in to change notification settings - Fork 197
Fix debug device/web socket closing #2897
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
Conversation
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.
Do not merge until we have fixed the issue in runtime.
@rosen-vladimirov Is there an issue in the other repo for that? Do we have update on this? |
@zahhak I created an issue -> NativeScript/ios-jsc#832 with some additional information. |
2ce0929
to
61103da
Compare
When we close the websocket we have to destroy the device socket as well. We need to wait the close event on the device socket instead of end.
61103da
to
90fa4fe
Compare
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 merge it along with #3275 because they are needed for the latest debugging improvements in ios-runtime
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.
Issue in ios runtime has been resolved already, I think it's high time we merge this
When we close the websocket we have to destroy the device socket as well. We need to wait the close event on the device socket instead of end.
* Generate debug port in range for Chrome DevTools websocket - iOS (#3275) * fix generating port for debug socket when debugging ios with chrome devtools When generating a port to start a websocket on, use the same logic as is present in the android debug service - get the first available available port in a range, and reuse it for the next debug session of the same application if it is still available * fix(device-socket): iOS Socket proxy should listen on IPv4 localhost adapter Check for available port is done on this adapter and by default server is launched on "::" which is IPv6's any adapter * Fix debug device/web socket closing (#2897) When we close the websocket we have to destroy the device socket as well. We need to wait the close event on the device socket instead of end. * fix(ios-inspector): Correctly update cached inspector package to latest compatible version (#3302) * Currently it is never updated and is left at the first version ever installed in `~/.local`. As a result newly published inspector packages are not used unless the user installs them explicitly in the project or deletes the cache manually. * The iOS inspector package version must be determined according to project's iOS runtime version instead of the version of CLI as it has been till now
When we close the websocket we have to destroy the device socket as well.
We need to wait the close event on the device socket instead of end.