Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you make SignalR work with RequireJS?

When using SignalR with hubs, you need to include a script with a src of "/signalr/hubs" - i.e. with no .js extension. When I try to use this with RequireJS, it insists on adding the '.js' extension which means that hub proxy is never loaded.

Any ideas how to stop it doing that?

like image 960
emertechie Avatar asked Dec 30 '11 21:12

emertechie


1 Answers

Answering my own question for benefit of others: I found a 'noext' plugin for RequireJS here which solves issue.

As stated on that page, this relates to Issue 18 of RequireJS

like image 184
emertechie Avatar answered Sep 20 '22 09:09

emertechie