Category : signalr

I’m having trouble parsing data sent from signalR hub to my client variables. So heres how it goes, I activate my signalR listener on my client, and i extract the message like so: connection.on(‘StreamData’, message => { // catch message here. console.log("Message recieved ", message) }); and i get smth like this: Message recieved Object ..

Read more

I have a remote hub that is running in a windows service that is connected to a TCP server. I want to be able to alert a user if the hub is online or not. I am using the following javascript code Login Webpage: <script src="Scripts/SignalR.js"></script> <script src="http://localhost:1200/signalr/hubs"></script> SignalR.js: try { $.connection.hub.url = ‘http://localhost:1200/signalr’; } ..

Read more

Stuck at problem – @microsoft/signalr send ping messages (not a internal websockets ping frames), but sometimes it stop sending that messages. Chrome dev tools indicates, that client wont send ping message to server, then server closes connection with code: 1000; wasClean: true parameters on CloseEvent Websocket.send method has void return type, that, i guess, "fire-and-forget" ..

Read more

I have written a code in c#, javascript, using client library SignalR to refresh a page in database value change. My code is <form asp-action="Start" method="post" class="form-stacked"> <button type="submit" id="startPractice" class="button-primary">Start Practice</button> </form> <script src="~/js/ignalr/dist/browser/signalr.js"></script> <script src="~/js/chat.js"></script> My API method is which is called while clicking start practice is public async Task<IActionResult> Index(long sessionId) { ..

Read more