Added socket io functionality to the session controller and view