dfrencham / ms-signalr-client

Unofficial package for the Microsoft SignalR client. Intented for comsumption with jspm.
21 stars 16 forks source link

relative connection URLs #11

Closed zidik closed 7 years ago

zidik commented 7 years ago

I would like to specify the url in this format $.hubConnection('/MyEndPoint'); instead of providing the full address of the server in the source $.hubConnection('http://[address]:[port]/MyEndPoint');

The first request - "negotiate" is successful, as it goes to the endpoint http://localhost:3000/MyEndPoint/signalr/negotiate?clientProtocol=1.5&.....

but the "connect" request does not hit the endpoint, ws://localhost:3000/signalr/connect?transport=webSockets&...

zidik commented 7 years ago

I realized, the problem was caused by a proxy. The URL "negotiate" sent back, was already without the MyEndPoint.