Push data to client using SignalR vs WCF?

前端 未结 5 1465
日久生厌
日久生厌 2020-12-29 21:54

I have one WPF client-server application. Now I have scenario like client will connect to server and server will push data to client periodically. I am bit confused about wh

5条回答
  •  佛祖请我去吃肉
    2020-12-29 22:22

    SignalR is not just about web. SignalR server side code does not care about the technology of its clients, you just need to have implementors at the client side.

    If we isolate pusing data to the client, I would strongly recommend SignalR as it's much simpler than WCF in this aspect, I had my share of problems with WCF and I guess you had some yourself. I found a simple console/web application sample here.

    In general, Duplex WCF and using Callback like here seems very messy to me, there is a lot of configuration server side and this is why I think SignalR is simpler.

    In addition, you can't use duplex (AFAIK) with javascript and objective-c.

提交回复
热议问题