SignalR to SockJs [Answered]

Trying to used SignalR in C# to set up a websocket with a SockJS server (Octopi for a 3D printer). I'm using a Blazor server. Followed the tutorial on making a chat system, but struggling to find info on how to connect to external sites like a SockJS server. I've managed to get API calls working, but want learn more about responsive websites. The goal is to make a webpage that grabs info from multiple servers, parses it, and displays it for the user in real time. We're starting with the 3D printer, but plan to expand to some proprietary software once I have a grasp on this. I think I need a good tutorial or online course to understand more about SignalR: how to have a blazor server connect to another server's websocket, how to test and troubleshoot SignalR connection issues, how to set it up so an unresponsive server doesn't freeze a script or new webpage, etc. I'm open to suggestions for a better approach, but I'm comfortable in C#. Octopi docs: https://docs.octoprint.org/en/master/api/push.html SignalR tutorial - IAmTimCorey: https://www.youtube.com/watch?v=RaXx_f3bIRU Udemy Course that I learned with: https://www.udemy.com/course/blazor-ecommerce/
IAmTimCorey
YouTube
Intro to SignalR in C# Part 1 - using Blazor, WPF, best practices, ...
SignalR is an excellent way to connect two or more clients together for real-time communication. The best part is that this library is just a wrapper around web-standard technologies such as Web Sockets and Long-Polling. It just makes them easier to use. That means we can even use SignalR with other clients such as Java or JavaScript. In this vi...
Udemy
Make an E-Commerce Website with Blazor WebAssembly in .NET 6
Learn how to build an E-Commerce Website with Blazor WebAssembly, a Web API, Entity Framework Core & SQL Server Express.
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Saiyanslayer
Saiyanslayer2y ago
👍 I'll give that a go
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
✅ This post has been marked as answered!