I'm creating a work diary web application in mvc using vb.net The application will display any diary entries that have a HiLite boolean field (HL) set to true in a table on the home page.
Currently I've implemented a simple refresh of the home page using a meta tag that refreshes the page every 2 mins and this copes with any changes to the table. e.g. a new HiLited diary entry has been added by someone or a HiLited entry has had its flag set false.
I would like to 'move with the times' and possibly use SignalR to eliminate unnecessary requests + have a more realtime feel to the table data.
I've not used SignalR before. I've looked at some simple examples but need clarification if this is the best way to go.
Will using SignalR do the following....
- On first visit get and display all current HL diary entries
- If a new entry is added refresh the table on all clients
- If an entry has it's HL flag set to false refresh the table on all clients
or is there some better method.
The SignalR samples I've seen are simple 'chat' samples that basically have two params User + Msg and the code appends any new messages to an html element.
I will have an list of a diary entry object... will I be able to do what I need and instead of appending to html element... I use it to replace the content of the html element.