0f822b2385
* Update to net7.0 and add a solution file * Update to use latest client js lib * Update Chatroom to use the latest syntax |
||
---|---|---|
.. | ||
Auth | ||
Controller | ||
Hub | ||
Properties | ||
wwwroot | ||
.dockerignore | ||
.gitignore | ||
AdvancedChatRoom.csproj | ||
Dockerfile | ||
Program.cs | ||
README.md | ||
Startup.cs | ||
appsettings.json |
README.md
Azure SignalR Service Advanced Chat Room
Just like ChatRoom sample, you can leverage Azure SignalR Service to handle more clients and offload the connection management part. This sample demonstrates more operations available in Azure SignalR Service.
Now the sample supports:
- Echo
- Broadcast
- Join Group / Leave Group
- Send to Group / Groups / Group except connection
- Send to User / Users
- Cookie / JWT based Authentication
- Role / Claim / Policy based Authrization
Run the sample locally
Type the following commands to run this app.
dotnet restore
dotnet user-secrets set Azure:SignalR:ConnectionString "<your connection string>"
dotnet run
Quick Deploy via Docker image
You can also deploy this sample via existing docker image
docker run -e Azure__SignalR__ConnectionString="<signalr-connection-string>" \
-p 5000:80 mcr.microsoft.com/signalrsamples/advancedchatroom:latest
Open the broswer with url localhost:5000
, you can see the sample just like Chat Sample but has more operations.