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

Method recv

src/client/blocking/response/ws.rs:72–76  ·  view source on GitHub ↗

Receives a message from the WebSocket.

(&self, py: Python)

Source from the content-addressed store, hash-verified

70
71 /// Receives a message from the WebSocket.
72 pub fn recv(&self, py: Python) -> PyResult<Option<Message>> {
73 py.allow_threads(|| {
74 pyo3_async_runtimes::tokio::get_runtime().block_on(WebSocket::_recv(self.0.receiver()))
75 })
76 }
77
78 /// Sends a message to the WebSocket.
79 #[pyo3(signature = (message))]

Callers 1

test_websocketFunction · 0.45

Calls 1

receiverMethod · 0.80

Tested by 1

test_websocketFunction · 0.36