modified chat room setup server to use http object and removed chaining from middleware