title: Node.js Socket.io redirect user to other page after joining a room
body: <p>How to redirect after Joining a room</p>
  
  <pre><code>socket.on('connect_to_room', function(data, ackno) {
              socket.room_id = data['room'];
              socket.user_name = data['username'];
              socket.join(socket.room_id);
              users.push({ socket : {'socket_id' : socket.id, 'room_id':socket.room_id, 'username': socket.user_name}});
              redirect('/termsandconditions');
          });
  </code></pre>
  
  <p>Load page call </p>
  
  <pre><code> app.get("/termsandconditions", function(req, res){
                  res.render(__dirname+ "/termsandconditions.html",{"termdata": terms});
      });
  </code></pre>
  
  <p>Is this Coorect ? What am i missing here?</p>