Last post Jun 05, 2013 09:00 AM by Ruchira
May 28, 2013 10:17 AM|EnenDaveyBoy|LINK
I am sort of planning to built a few elements onto my site, one of them being a chat facility.
lets say there is a small chat between users on a screen (a bit like facebook), and one of the users loads a new page, does that person then leave that chat group and do I have to rejoin them the page loading, or does the session continue until I run a method
to close the connection to the group?
May 28, 2013 12:03 PM|Nasser Malik|LINK
does that person then leave that chat group and do I have to rejoin them the page loading,
Have you ever noticed how FB chat behaves when you opened FB in two or more tabs ? It coming same on all tabs .. So on opening new window in same browsers or others it remains save .. Actually FB is saving all your chat ..
or does the session continue
If session is active, it will be active on all windows in a browser .. Session can be reset for few
I would prefer you to move new technology SignalR
Create a real-time chat application
Sorry i didn't noticed that ..
so I load the home page, join a chat room, click on a link on the home page and it loads in another page
If once page reload than connection will be lost in SignalR as all connection reside on client side .. Refreshing the page will break the connection and new connection assign to user. SingalR application are effectively works with
Single Page Applications
See this tutorial
Maintaining SignalR ConnectionId’s Across Page Instances
May 29, 2013 05:54 AM|EnenDaveyBoy|LINK
I was talking about Signalr since its the signalr forum
I wasn't talking about tabs I was talking about pages, so I load the home page, join a chat room, click on a link on the home page and it loads in another page, is the user still in the chat room?
So if a user goings a signalr group, they are in it until they sign out, or the session ends?
May 29, 2013 09:49 AM|cwt237|LINK
a connect (if you wire up SignalR again).
So the user is gone - seen from the server point of view. You will have to handle this, by associating the user with the chat room again.
May 29, 2013 11:05 AM|EnenDaveyBoy|LINK
Thanks, I am storing the conversation in a DB, but how will i ensure that all the chat will be displayed? eg if someone posts while the page is loading it wouldn't be return when the page loads? (I am basing this on returning the chat outside signalr, or
is it better to that inside singalr and how?)
Jun 05, 2013 09:00 AM|Ruchira|LINK
I am storing the conversation in a DB, but how will i ensure that all the chat will be displayed? eg if someone posts while the page is loading it wouldn't be return when the page loads?
Then you have to implement session management in SignalR.
Please 'Mark as Answer' if this post helps you