Our great sponsors
-
TypedSignalR.Client.TypeScript
TypeScript source generator to provide strongly typed SignalR clients by analyzing C# type definitions.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I have a SignalR hub in my C# backend and I generate a typescript client for it using https://github.com/nenoNaninu/TypedSignalR.Client.TypeScript. However, I am not very experienced with react so I do not know how to integrate this generated code into react components. My main issue is that I connect to SignalR from the component and if the component updates, a new connection is created. I would like to move this out of the component so it does not constantly make new connections.