MCPcopy Create free account
hub / github.com/python-websockets/websockets / send_outgoing_messages

Function send_outgoing_messages

src/websockets/cli.py:89–101  ·  view source on GitHub ↗
(
    websocket: ClientConnection,
    messages: SimpleQueue[str],
)

Source from the content-addressed store, hash-verified

87
88
89async def send_outgoing_messages(
90 websocket: ClientConnection,
91 messages: SimpleQueue[str],
92) -> None:
93 while True:
94 try:
95 message = await messages.get()
96 except EOFError:
97 break
98 try:
99 await websocket.send(message)
100 except ConnectionClosed: # pragma: no cover
101 break
102
103
104async def interactive_client(uri: str) -> None:

Callers 1

interactive_clientFunction · 0.85

Calls 2

getMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…