nodejs перенаправить на URL
// In Express
router.get('*',function(req,res){
res.redirect('http://exmple.com'+req.url)
})
Cybercoder
// In Express
router.get('*',function(req,res){
res.redirect('http://exmple.com'+req.url)
})
response.writeHead(301,
{Location: 'http://whateverhostthiswillbe:8675/'+newRoom}
);
response.end();