found a way to set the socket.io refernce without having to change it depending on which server it's being hosted on