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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With