Closed willthiswork89 closed 7 years ago
You could take a look at the ChatSample in this repo https://github.com/aspnet/SignalR/tree/dev/samples/ChatSample
Although you will probably run into issues when using 2.0 because the dev branch of SignalR uses 2.1.0-*. If you want to use 2.0 you will need to use the rel/1.0.0-alpha1 branch. Unfortunately we don't have any nuget packages yet, but we will soon.
I have managed to get a paired down version working within a .net CORE RestAPI for a basic "chat" that shows events as they are POST'ed to a controller. I believe I may be the first person to actually get this working since I could not find any documentation haha
did you post the code anywhere...
Hey Byron, i did not yet because its written with some pretty specific IP that my company owns. I plan on making a little cleaner example directly from a clean .net core 2.0 template so i can share or possibly merge into the examples here.
In case anyone's interested I've created a Basic Demo App using .NET Core 2.0 and SignalR. It can be found here.. https://github.com/jadjare/SignalR-AspNetCore2-Demo
Instructions to get started are in the ReadMe file.
The alpha1 has been shipped on NuGet and npm. There are some samples in the https://github.com/aspnet/SignalR-Samples repo. I am closing this issue for now. Feel free to open a new issue if you encounter problems.
In this screencast I setup an mvc controller, when posted to, we broadcast to all connected clients, in our specific case, it's angular apps running on a seperate host, so it involves CORS as well.
https://www.towfeek.se/2017/09/16/consuming-signalr-for-aspnet-core-from-angular/
Hope it helps, cheers!
I have been trying for about 14 hours now to get MVC working with the signalR library in a core 2.0 app. I know its fairly new but i was wondering if anyone has found a sample or example of a simple chat app with core 2.0.
Thanks!