n.dee
n.dee

Reputation: 371

How can I use SignalR Hubs / Proxies without SignalR connection?

Here is my situation:

I have a 4-tier web application consisting of browser, web server, application servers and database.

Browser and application server should communicate in a RPC-style way.

The backend will run on windows machines, so I will use IIS as web server The application needs real time communication between application server and browser.

I want to use a SignalR connection for the communication between browser and web server. For the communication between web server and application server's I want to use a plain TCP connection.

I think this approach will enable me to send JSON messages between browser and application servers. But how can I realize a RPC communication?

Can I write a SignalR Hub, generate a JS proxy and bind the Hub to a TCP socket?

Here is a picture: https://www.dropbox.com/s/xeaja4dos4bgvbz/SignalR_Hubs_Stackoverflow.png

Upvotes: 0

Views: 1355

Answers (1)

davidfowl
davidfowl

Reputation: 38764

Nope. SignalR is based on HTTP not TCP directly. WebSockets is the closest thing to a raw tcp socket and it has the added benefit that it works over port 80.

Upvotes: 3

Related Questions