MCPcopy
hub / github.com/openai/openai-python / send_raw

Method send_raw

src/openai/resources/realtime/realtime.py:840–845  ·  view source on GitHub ↗
(self, data: bytes | str)

Source from the content-addressed store, hash-verified

838 raise
839
840 def send_raw(self, data: bytes | str) -> None:
841 if self._is_reconnecting:
842 raw = data if isinstance(data, str) else data.decode("utf-8")
843 self._send_queue.enqueue(raw)
844 return
845 self._connection.send(data)
846
847 def close(self, *, code: int = 1000, reason: str = "") -> None:
848 self._intentionally_closed = True

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.80
enqueueMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected