Made it check which environment it's in before loading socket.io