Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Javascript client breaks if relative url doesn't start with a slash #877

@davidfowl

Description

@davidfowl
let connection = new signalR.HubConnection('chat');
Information: Normalizing 'chat' to 'http://localhost:5000chat'
signalr-client-1.0.0-alpha1.min.js:1 Error: Failed to start the connection. SyntaxError: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL

We should check if the path doesn't start with a slash and add it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions