Only output debug if debug is set.
Enable ssl through https and wss.