首页 > 其他 > 详细

[SignalR]配置路由

时间:2014-04-03 00:00:01      阅读:544      评论:0      收藏:0      [点我收藏+]
原文:[SignalR]配置路由

注册路由,在代码如下(SignalR 1.*):

bubuko.com,布布扣

脚本修改如下:

bubuko.com,布布扣

但是其官方文档解释是:

By default, the route URL which clients will use to connect to your Hub is "/signalr". (Don‘t confuse this URL with the "/signalr/hubs" URL, which is for the automatically generated JavaScript file. For more information about the generated proxy, see  SignalR Hubs API Guide - JavaScript Client - The generated proxy and what it does for you .)
There might be extraordinary circumstances that make this base URL not usable for SignalR; for example, you have a folder in your project named signalr and you don‘t want to change the name. In that case, you can change the base URL, as shown in the following examples (replace "/signalr" in the sample code with your desired URL).

参考链接:http://www.asp.net/signalr/overview/hubs-api/hubs-api-guide-server#route

[SignalR]配置路由,布布扣,bubuko.com

[SignalR]配置路由

原文:http://www.cnblogs.com/lonelyxmas/p/3640924.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!