Skip to content

"Error: URL.pathname not implemented signalr" - @microsoft/signalr V8.0.0 on React-Native 0.72.7  #52071

Open
@erez-unitronics

Description

@erez-unitronics

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions