Rewrite Server sent event