def METHOD_NAME(self, event: Event) -> None:
    if self._closed.is_set():
        return
    response = requests.post(
        f"{self.origin}/event",
        headers={"Content-type": "application/json"},
        data=json_util.dumps(
            {
                "event": event.get_event_name(),
                "data": asdict(event, dict_factory=dict_factory),
                "subscription": self._subscription,
            }
        ),
    )
    if response.status_code != 200:
        raise RuntimeError(
            f"Failed to post event `{event.get_event_name()}` to {self.origin}/event"
        )