博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[SignalR]配置路由
阅读量:4663 次
发布时间:2019-06-09

本文共 829 字,大约阅读时间需要 2 分钟。

原文:

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

脚本修改如下:

但是其官方文档解释是:

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).

参考链接:

posted on
2014-04-02 16:04 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/lonelyxmas/p/3640924.html

你可能感兴趣的文章
c#截取后台窗口的图片
查看>>
css3中的动画 @keyframes animation
查看>>
虚拟机内 docker启动 局域网无发访问 问题解决
查看>>
whu Problem 1537 - A - Stones I 贪心
查看>>
Codeforces Round #341 (Div. 2) E. Wet Shark and Blocks dp+矩阵加速
查看>>
LeetCode Online Judge 题目C# 练习 - Plus One
查看>>
保存的网页地址---持续更新
查看>>
文件空洞的作用:文件系统帮你做到磁盘预留
查看>>
openssl pkcs12
查看>>
C++中的this指针
查看>>
浅谈Objective-C中浅谈面向对象
查看>>
Python解释器
查看>>
【转】 线段树完全版 ~by NotOnlySuccess
查看>>
Sharepoin学习笔记—架构系列-- Sharepoint的处理(Process)与执行模型(Trust Model) 2
查看>>
Go文件右键编译
查看>>
JS 排序算法
查看>>
android 对软键盘显示和消失,EditView的焦点获取事件进行监听
查看>>
BP(商业计划书写)
查看>>
rancher导入k8s集群后添加监控无数据
查看>>
如何隐藏input边框,使其不显示
查看>>