Sem
Sem

Reputation: 73

Updating client view from server without client call (C# MVC)

Client 1: Is a simple view with a message obtained from database, "My message"

Client 2: other view of same server, this client update the message from database "My NEW message"

When client 2 update the message, i want that Client 1 navigator was updated and show "My NEW message". Is it possible?

A way to do that could be exec a automatic ajax call every X seconds... but i prefer that server send a message to the other client updating his view.

I have no clue if it is possible.

Thanks in advance

Upvotes: 0

Views: 644

Answers (1)

Lukasz Mk
Lukasz Mk

Reputation: 7350

ASP.NET SignalR is what you need.

Please read more here:

Upvotes: 2

Related Questions