简体   繁体   English

在asp.net网站上的SignalR asmx项目可能吗?

[英]SignalR in asp.net website asmx project possibility?

I'm new to signalR hope someone here can point me the way before I dive into it. 我是刚接触SignalR的人,希望这里有人可以在我深入之前为我指明方向。 I've got an asmx asp.net website (4.5). 我有一个asmx asp.net网站(4.5)。 I have running applications (ios/android) that are consuming it, I want to improve my chat mechanism and after short research I've came into the SignalR. 我正在运行正在使用它的应用程序(ios / android),我想改善我的聊天机制,经过短暂的研究,我进入了SignalR。

My question is if I can work in the same website with both signalr and asmx webservies without interfering. 我的问题是,我是否可以在不干扰Signalr和asmx网络服务的情况下在同一网站上工作。

Thanks. 谢谢。

Yes, you can. 是的你可以。

SignalR provides a "hub" which you can place in your asmx page. SignalR提供了一个“集线器”,您可以将其放置在asmx页面中。 This hub then provides a connection to the server to send and receive SignalR events. 然后,该集线器提供到服务器的连接,以发送和接收SignalR事件。

I recommend that you get started by checking out http://signalr.net/ and play with some samples there. 我建议您首先查看http://signalr.net/并在那里试用一些示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM