Take the 2-minute tour ×

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?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
perfect--was just trying this today. Thanks for posting the answer. Upvoted both :) –  timDunham Mar 1 '12 at 18:35
I don't think you even need the plugin. All it does it add a querystring. You can do that yourself. ~/signalr/hubs?t=1 is what I did and it worked fine. –  Jeff Shepler Jul 6 '13 at 20:27

Your Answer


