"Error: URL.pathname not implemented signalr" - @microsoft/signalr V8.0.0 on React-Native 0.72.7
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
Hi,
I updated the @microsoft/signalr package on my react-native app from V7.0.12 to V8.0.0 and it stopped working after the update.
The connection is failing when firing the start() method.
The error: "Error: URL.pathname not implemented signalr".
This is the code (which works fine with V7.0.12):
let hubConnection = new HubConnectionBuilder()
.withUrl(`${CONFIG.MOBILE_SERVER_BASE_URL}/${hubName}`, { transport: HttpTransportType.WebSockets })
.build();
hubConnection.start()
.then(() => {
...
})
.catch((error) => {
...
});
Thanks
### Expected Behavior
Fix this bug
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.