skip to Main Content

SignalR connection works with console app but not with ReactJS

I have the following relevant code on my ASP.NET server: // TrackingHub.cs public class TrackingHub : Hub { public async Task SendLocationData(LocationData locationData) { await Clients.Others.SendAsync("ReceiveLocationData", locationData); Console.WriteLine($"{locationData.Latitude}, {locationData.Longitude}"); } } // Program.cs builder.Services.AddSignalR() builder.Services.AddCors(options => { options.AddDefaultPolicy(builder => {…

VIEW QUESTION

Seo – Nextjs "use client" with React Containment

I have a component that contains inside it (as children) content that needs to boost SEO. Here's a snippet of my code: <AnimatedElement className="flex flex-col justify-start items-center gap-4 w-full" duration={500}> <h2 className={montserratBoldFont.className + " font-bold text-4xl text-black text-left"}><span className='text-ac-violet'>Find</span> Us</h2>…

VIEW QUESTION
Back To Top
Search