Skip to content

Change the way we detect Node.js in SignalR JS/TS client. #49066

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

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

mitchdenny
Copy link
Member

Partially addresses. #49065

At the moment we detect whether we are using Node based on the presence of the window object in the global scope. If it is present, then we aren't Node.js (its a little more complex due to web workers and react native).

The idea behind this change is that we look for the process object instead.

@ghost ghost added the area-signalr Includes: SignalR clients and servers label Jun 28, 2023
@ghost
Copy link

ghost commented Jul 7, 2023

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no breaking changes are introduced, please leave an /azp run comment here to rerun the CI pipeline and confirm success before merging the change.

@ghost ghost added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jul 7, 2023
@mitchdenny
Copy link
Member Author

/azp run

@ghost ghost removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jul 9, 2023
@azure-pipelines
Copy link

No commit pushedDate could be found for PR 49066 in repo dotnet/aspnetcore

@mitchdenny mitchdenny merged commit d0528f6 into dotnet:main Jul 12, 2023
@ghost ghost added this to the 8.0-preview7 milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants