docstr: Sends an event to the server
  
  Args:
      event: the event
docstr_tok: ["Sends","an","event","to","the","server","Args",":","event",":","the","event"]
code: def send_event(self, event: EventType) -> None:
      """Sends an event to the server
  
      Args:
          event: the event
      """
      if self._closed.is_set():
          return
  
      if not self._connected:
          raise RuntimeError("Client is not connected")
  
      self._post_event(event)
      self._dispatch_event(event)
  
imports: from collections import defaultdict
  from dataclasses import asdict, dataclass
  import logging
  from retrying import retry
  from threading import Thread, Event
  import time
  import typing
  from bson import json_util
  import requests
  import sseclient
  from uuid import uuid4
  import fiftyone.constants
  import fiftyone.core.state
  from fiftyone.core.session.events import Event, EventType, ListenPayload, dict_factory
label_desc: Use image node_id 6 for calling the Client obj's underlying member method code with example usage: obj.send_event(event) without return types