关于如何开始使用SignalR,我正在关注tutorial
但在我添加startup
和chathub
并尝试运行它后,我会收到此网页。
我是否必须在startup
班级
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(Idle.Startup))]
namespace Idle
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
// Any connection or hub wire up and configuration should go here
app.MapSignalR();
}
}
}
或者我需要做些什么来使SignalR工作?
由于
答案 0 :(得分:0)
下载的源代码并且运行正常,我假设您是从Visual Studio中的解决方案运行的:
您只需浏览http://localhost:52587/Default.html
- 或您正在使用的任何端口。
或者您可以右键单击Visual Studio中的Default.html
并选择View in Browser