SignalR连接

时间:2016-06-10 17:44:01

标签: asp.net asp.net-mvc signalr

关于如何开始使用SignalR,我正在关注tutorial 但在我添加startupchathub并尝试运行它后,我会收到此网页。

enter image description here

我是否必须在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工作?

由于

1 个答案:

答案 0 :(得分:0)

下载的源代码并且运行正常,我假设您是从Visual Studio中的解决方案运行的:

您只需浏览http://localhost:52587/Default.html - 或您正在使用的任何端口。

或者您可以右键单击Visual Studio中的Default.html并选择View in Browser