Fixed push server and client so that publisher and client work as expected if debug mode is set for either one