I have a module in which I would like to implement SignalR. Unfortunately, the examples I have found (including the DnnChat module by Chris Hammond) are not built using MVC, and I have been unable to translate them into my project. I did see a tutorial that might have what I need, but it was behind a paywall. Are there any modern examples or tutorials out there that could help me figure this out?
Thank you
I managed to cobble together a solution that works in DNN9. I built it using the Upendo DNN project structure, so the Solution may look a bit foreign to those only familiar with the ChrisToc templates. I based my work on this Microsoft Tutorial, which translated into the DNN world relatively easily. There's no fancy stuff like rooms, database tables for chat archival, or avatars. Right now, it's nothing more than a proof of concept with a lot of copy pasta, but it does work.
That being said, I have published the code base to GitHub for your parusal.
I may clean this up over time, and I welcome your feedback, but for now, I need to get back to the real work.
Posted By Ken C on 12 Aug 2022 03:18 PM I would love to collaborate with you on making this module work with DNN 9.
Thank you so much for the response! Hopefully there will be an answer or two in my repo that will translate into your module. I have forked your repo to play with it, but because of time constraints I'm afraid my play time will need to be postponed. Good luck and have fun!
For the record it is not my module.
It is awesome and something I would love to make work with DNN 9.x which because of the changes of SignalR doesn't work in DNN 9. It will install and all the admin functionality works but the chat part doesn't because it has to be refactored to the newer version of SignalR.
I happen to be on a team of five DNN developers now and perhaps we all can put our heads together and make a functional version for DNN 9.
While we're on this thread: If you haven't played with Oqtane yet this would be a good time to do so. Oqtane makes extensive use of SignalR and is the next logical step for ALL DNN developers. Oqtane was founded by Shaun Walker - our Luke Skywalker/Elon Musk/Neo - and at version 3.1.4 is about where I discovered DNN 2.1.2 - namely a sophisticated and complete framework from which to build your own applications upon. I played with earlier versions and didn't quite get it. All I can say is Shaun has done an Elon Musk worthy contribution to the ecosystem by releasing this to the community. If you are building a new project - consider using Oqtane instead of DNN as it comprises all the important pieces and parts that DNN has - but is modern and future proof. If you haven't investigated how readily your skills from DNN will translate to Oqtane, check out Michael Washington's awesome SyncFusion How to Build A Help Desk Module in Oqtane here.
Either way good luck on your project.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.