SignalR Poster Availability - signalr

Is there a SignalR Poster available like its available for ASP.NET MVC (Poster) and available for ASP.NET Web API(Poster)?
N.B. - Better if posters available for SignalR Server(.NET should be fine ), SignalR Client(JavaScript should be fine) and interactions between SignalR server and SignalR client

Related

WCF or ASP.NET Web API AJAX Duplex Service with Callback and One Way Communications

I'd like an ASP.NET C# WCF or Web API AJAX Web Service with full duplex communications with a callback for one way operations that works over AJAX.
(IsOneWay = true)
and
(CallbackContract = typeof(IServiceCallback))
I've read that WCF webHttpBinding can't support Duplex communications, but this is the default for creating a WCF AJAX enabled web service in Visual Studio. I've also read that ASP.NET Web API is replacing WCF. However, Web API is only request/response communications and is not duplex.
Is there a way for an AJAX Duplex web service or a way for the server can block communications until a server event happens or a function is called?
webHttpBinding with in the endpoint behavior didn't work. wsDualHttpBinding didn't work for javascript

SignalR sticky sessions with F5 and Citrix

we have a web application (angular) that needs to interact with a winform application. we do that via SignalR.
the browser and winform are deployed on a citrix server.
There is a webfarm of IIS servers and on those we have the webapi services and also the signalR Hubs.
all network activity goes via F5 loadbalancer.
the problem we are facing - is how to make sure the web applicaion running on chrome, and the windows forms application connect both to the same SignalR Hub Server.
we cannot use stickey sessions based on Origin IP as all users are using the citrix infrastructure, so all have the same origin IP.
using a cookie - i am not sure that the cookie is shared between the browser and the winform app. and anyways cookie in a websocket scenario isnt working (right ?)
is the only solution using a backplane ? (not using dotnet core at the moment)
Override or Change source Signalr
Private Task ProcessNegotiationRequest-->
string connectionId = !string.IsNullOrEmpty(context.Request.QueryString["ConnId"]) ? context.Request.QueryString["ConnId"]: connectionId = Guid.NewGuid().ToString("d");
And send conId in querystring

DNN Authentication with SignalR

I'm using a signalR hub to handle server requests from a DNN portal. What is the best way to authenticate a client request from signalr in DNN? Is it possible to do this in a manner similar to the how the DNN implementation of WebAPI uses the services framework or is there another approach?

Asp.Net : Best way to broadcast data from WCF service to Asp.Net client

I need to create a high-frequency realtime web application and I would like to know the best way for doing it!
A WCF Service hosted in a Windows Service needs to refresh browser clients (ASP.NET application) each seconds with fresh data (often with IE8).
I've think about 2 solutions :
1. WCF Callback from WCF Service to Asp.Net Application server side and SignalR from ASP.NET Application server side to ASP.NET Application client side.
SignalR from WCF service to Asp.NET Application client side but is it possible??? If yes, how because I just found tutorials with communication between Asp.net server side and cient side and never with signalR as server hosted in a WCF.
Documentation I found is :
http://blog.maartenballiauw.be/post/2011/12/06/Using-SignalR-to-broadcast-a-slide-deck.aspx
http://www.asp.net/signalr/overview/getting-started/tutorial-server-broadcast-with-aspnet-signalr
http://www.asp.net/signalr/overview/getting-started/tutorial-high-frequency-realtime-with-signalr#serverloop
Thks
I think this post can help: SignalR as WCF web socket service :
...
You can self-host the SignalR server:
Taken from (https://github.com/SignalR/SignalR/wiki/QuickStart-Hubs):

SignalR web client without ASP.NET?

Is it possible to write a WebSocket (SignalR) client without having to embed it in an ASP.NET application hosted on IIS (or other ASP.NET web server)?
For example if I have a Self Hosted SignalR Server with a custom Hub, is it possible (and if so, how) to call it from a "pure" Javascript web client?
In that case we don't have the <script src="~/signalr/hubs" type="text/javascript" /> part with the run-time generated "magic" scripts in the ~/signalr/hubs/ folder.
You do not need to have an asp.net application for SignalR to work. You can create a generic html page and still communicate with a SignalR server. You can even utilize silverlight, windows phone or other clients to communicate with a SignalR server, there are plenty that are currently supported and even more that are third party developed (like android, ios, node etc.).
When you say "pure" JavaScript client I'm assuming you mean no third party libraries like JQuery, in this case SignalR currently does not work without JQuery but a client that does not depend on JQuery is in the pipeline (https://github.com/SignalR/SignalR/issues/372).
You can create a Self Hosted server pull down the SignalR by using ASP.NET Owin.
Edit:
In order to use self hosted servers you will have to enable cross domain in your application. See the answer to: SignalR: Error during negotiation request: undefined

Resources