Made changes to Socket.IO app so that it passes the functional test