Hiding old code for depreciated methods on socket.io