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

Method close

src/openai/resources/realtime/realtime.py:847–849  ·  view source on GitHub ↗
(self, *, code: int = 1000, reason: str = "")

Source from the content-addressed store, hash-verified

845 self._connection.send(data)
846
847 def close(self, *, code: int = 1000, reason: str = "") -> None:
848 self._intentionally_closed = True
849 self._connection.close(code=code, reason=reason)
850
851 def parse_event(self, data: str | bytes) -> RealtimeServerEvent:
852 """

Callers 5

closeMethod · 0.45
__aexit__Method · 0.45
__exit__Method · 0.45
upload_file_chunkedMethod · 0.45
upload_file_chunkedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected