MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / send

Method send

src/client/blocking/response/ws.rs:80–85  ·  view source on GitHub ↗
(&self, py: Python, message: Message)

Source from the content-addressed store, hash-verified

78 /// Sends a message to the WebSocket.
79 #[pyo3(signature = (message))]
80 pub fn send(&self, py: Python, message: Message) -> PyResult<()> {
81 py.allow_threads(|| {
82 pyo3_async_runtimes::tokio::get_runtime()
83 .block_on(WebSocket::_send(self.0.sender(), message))
84 })
85 }
86
87 /// Closes the WebSocket connection.
88 #[pyo3(signature = (code=None, reason=None))]

Callers 4

send_messageFunction · 0.45
send_messageFunction · 0.45
execute_requestFunction · 0.45
test_websocketFunction · 0.45

Calls 1

senderMethod · 0.80

Tested by 1

test_websocketFunction · 0.36