Reconnecting a user to its socket
At the moment i am building a facebook like chat. Currently on facebook the user is always on the same page and the content is reloaded allowing a socket to stay open, much like iframe. But in my custom built chat everytime the user changes page everything refreshes ending that connection and creating a new one.

1- Anyway to reconnect the user to the same socket without closing the connection when changing page?

2- I've also read that currently there is a limit on the socket of 1024 connections, is there anyway to get over this limit?