0

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?

Rahul Ranjan
  • 1,028
  • 1
  • 10
  • 27

1 Answers1

0

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.

Kamyar
  • 18,639
  • 9
  • 97
  • 171
  • can't the chat application be implemented through wcf wsdualhttpbinding? – Rahul Ranjan Apr 04 '14 at 18:11
  • What is your architecture? Where does your wcf service stand? – Kamyar Apr 04 '14 at 18:12
  • Planning to create wcf service stands between two different websites. It would have a call back class for both clients and the service after getting invoked from first client would call the callback method of second client...isn't it possible.. I mean I am still in process to create it..:) – Rahul Ranjan Apr 04 '14 at 18:15
  • You still need some way to call your service methods (Or trigger to call them) with javascript/ajax. See my updated answer with link to CodeProject article. – Kamyar Apr 04 '14 at 18:17