fixing socket.transport undefined && socket.io resource option