24

Can TypeScript only be used to create SignalR web apps, or do we have to use jQuery? Or is there a TypeScript version of SignalR?

EdSF
  • 11,753
  • 6
  • 42
  • 83
uSeRnAmEhAhAhAhAhA
  • 2,527
  • 6
  • 39
  • 64

3 Answers3

23

SignalR has a dependency on JQuery therefore it is required that you use it.

However, there is an issue filed on the SignalR source GitHub page to re-write the JS client without the JQuery dependency.

https://github.com/SignalR/SignalR/issues/372

N. Taylor Mullen
  • 18,061
  • 6
  • 49
  • 72
  • TL;DR That issue has been closed. For .NET Core, use Signalr Core instead (https://github.com/SignalR/SignalR/issues/372#issuecomment-316150429). For .NET Framework, it seems there will be no updates: https://github.com/SignalR/SignalR/issues/372#issuecomment-316151028 – Leif Jones Sep 22 '21 at 15:45
11

I made this based on react-native-signalr but without adding jQuery to window object https://github.com/DVLP/signalr-no-jquery

Pawel
  • 16,093
  • 5
  • 70
  • 73
0

It's possible to use TypeScript or Javascript client, but you have to use new version SignalR Core.

Lukáš Kmoch
  • 1,239
  • 11
  • 11