sockets working in prod, added preprocessor for client code between environments