Revamped router and created response object for socket requests