Attempted bug fix, not reproducing in development environment. connect.compress() is not a function.