c# .netcore3.1 SignalR Demo源码 实现简易聊天室功能 服务器客户端双向通信 WebScoket

上传者: zinechina | 上传时间: 2021-04-14 18:28:33 | 文件大小: 338KB | 文件类型: ZIP
c# .netcore3.1 SignalR Demo 实现简易聊天室功能,包括用户进入、发送消息、实时接收消息、用户退出、实时查询在线人数, 本项目为SignalIR学习Demo,由本人编写。运行时在浏览器访问http://127.0.0.1:端口号/index.html 输入昵称点击”加入“按钮即可加入,浏览器上多开几个窗口就可以进行聊天。

文件下载

资源详情

[{"title":"( 49 个子文件 338KB ) c# .netcore3.1 SignalR Demo源码 实现简易聊天室功能 服务器客户端双向通信 WebScoket","children":[{"title":"SignalRDemo","children":[{"title":".vs","children":[{"title":"SignalRDemo","children":[{"title":"config","children":[{"title":"applicationhost.config <span style='color:#111;'> 78.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"v16","children":[{"title":".suo <span style='color:#111;'> 48.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"SignalRDemo.sln <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"netcoreapp3.1","children":[{"title":"SignalRDemo.exe <span style='color:#111;'> 170.50KB </span>","children":null,"spread":false},{"title":"SignalRDemo.deps.json <span style='color:#111;'> 104.06KB </span>","children":null,"spread":false},{"title":"SignalRDemo.runtimeconfig.dev.json <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"SignalRDemo.runtimeconfig.json <span style='color:#111;'> 224B </span>","children":null,"spread":false},{"title":"appsettings.Development.json <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"libman.json <span style='color:#111;'> 374B </span>","children":null,"spread":false},{"title":"SignalRDemo.pdb <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"appsettings.json <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"SignalRDemo.dll <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 653B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"IServices","children":[{"title":"IChatService.cs <span style='color:#111;'> 386B </span>","children":null,"spread":false}],"spread":true},{"title":"Services","children":[{"title":"ChatService.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"wwwroot","children":[{"title":"js","children":[{"title":"index.js <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"Index.html <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"aspnet","children":[{"title":"signalr","children":[{"title":"dist","children":[{"title":"browser","children":[{"title":"signalr.js <span style='color:#111;'> 212.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"jquery","children":[{"title":"dist","children":[{"title":"jquery.min.js <span style='color:#111;'> 87.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"SignalRDemo.csproj <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 719B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"SignalRDemo.csproj.nuget.g.props <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"project.assets.json <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"project.nuget.cache <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"SignalRDemo.csproj.nuget.dgspec.json <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"SignalRDemo.csproj.nuget.g.targets <span style='color:#111;'> 294B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"netcoreapp3.1","children":[{"title":"SignalRDemo.RazorTargetAssemblyInfo.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"SignalRDemo.exe <span style='color:#111;'> 170.50KB </span>","children":null,"spread":false},{"title":"SignalRDemo.assets.cache <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"SignalRDemo.csprojAssemblyReference.cache <span style='color:#111;'> 198.08KB </span>","children":null,"spread":false},{"title":"SignalRDemo.genruntimeconfig.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"SignalRDemo.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"SignalRDemo.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"SignalRDemo.pdb <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"staticwebassets","children":[{"title":"SignalRDemo.StaticWebAssets.xml <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":"SignalRDemo.StaticWebAssets.Manifest.cache <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"SignalRDemo.AssemblyInfo.cs <span style='color:#111;'> 1016B </span>","children":null,"spread":false},{"title":"SignalRDemo.AssemblyInfoInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":".NETCoreApp,Version=v3.1.AssemblyAttributes.cs <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"SignalRDemo.dll <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"SignalRDemo.MvcApplicationPartsAssemblyInfo.cache <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"Controllers","children":[{"title":"ChatController.cs <span style='color:#111;'> 662B </span>","children":null,"spread":false}],"spread":true},{"title":"Startup.cs <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"appsettings.Development.json <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"libman.json <span style='color:#111;'> 374B </span>","children":null,"spread":false},{"title":"appsettings.json <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"aspnet","children":[{"title":"signalr","children":[{"title":"dist","children":[{"title":"browser","children":[{"title":"signalr.js <span style='color:#111;'> 212.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"Code","children":[{"title":"ChatHub.cs <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false}],"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 653B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明