asp.net MVC实现websocket
时间: 2023-09-12 11:09:37 浏览: 149
在ASP.NET MVC中实现WebSocket通信可以通过以下步骤来完成:
1. 首先,在服务器端创建一个MVC控制器,并继承自ApiController。这是ASP.NET MVC中提供的WEB API的新特性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [WebSocket在ASP.NET MVC4中的简单实现](https://blog.csdn.net/zjlovety/article/details/53738238)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [ASP.NET MVC 实现WebSocket](https://blog.csdn.net/u011587852/article/details/89788465)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文