简体   繁体   中英

Can we use wcf WsDualHttpBinding(DUPLEX comm) for communicating between two different websites in asp.net

I want to make duplex communication ( CHAT like application ) between two different websites in asp.net. I have seen lot of demos of duplex communication with two windows application (nettcpbinding) binding.

But I want to achieve this with two websites. Can it be achieved?

It doesn't make any difference, just as you create a winforms app that has a reference to a WCF service, you can add a reference to your WCF service from your ASP.NET project as well.

However, if you want to make a chat like application (generally, any real-time communication with your web users), I recommend taking a look at SignalR .

Update:
If you're insisting on using WCF for implementing this, take a look at this CodeProject article which explains exactly what you're trying to achieve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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