首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > signalr-cities

signalr-cities

  • 资源大小:222.06 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: sockets signalr mvc3

资 源 简 介

Introduction This is an example that shows the functionality of real-time interaction with Signal-R. In this example we show how you can make changes in one client, and this changes are reflected in every client connected to the site. Once deployed the database, change your connection string. Run proyect and open multiple tabs. Once running try to delete, update, or add some cities. You will notice that these changes are reflected in all tabs opened. The code in js: ``` var connection = $.connection("/echo"); connection.received(function (data) { // manage received code }); connection.start(); ``` in c# code: initialize connection on global.asax routes.MapConnection("echo", "echo/{*operation}"); send broadcast to every client:

文 件 列 表

cities.sql

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.173572s