title: SignalR chat room with Acknowledgement of message received after saving it to Sql data Base
body: <p>Hello every one I am new to signalR I need little help to follow right approach in my chat module .<br/>
  My Refernce :
  <a href="http://www.codeproject.com/Articles/562023/Asp-Net-SignalR-Chat-Room" rel="nofollow">http://www.codeproject.com/Articles/562023/Asp-Net-SignalR-Chat-Room</a> but this article does not uses dataBase.<br/>
  Steps which I have used to build my chat module are :<br/>
  1 - Created <code>chatHub</code> class inherited from <code>Hub</code> class.<br/>
  2 - On <code>Connect(string enryptedId)</code> function in <code>chatHub</code> class I am adding to <code>List&lt;UserDetail&gt;</code>. <br/> 
  3 - On <code>SendPrivateMessage(string toData)</code> I am saving it to database if it saved successfully to dataBase without any exception then sending it to both sender and reciever and binding on their communication messages <code>&lt;div&gt;</code>. <br/><br/> 
  Problem in this approach - If after saving it to database if sender got disconnected due to network problem then sender will not recieve message from <code>chathub</code> class to client function so  message is not appended to <code>&lt;div&gt;</code> which shows user communications but actually message sent successfully. <br/>Please can any one tell me the right approach to do this.  </p>