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

Method websocket

src/client/async_impl/mod.rs:142–150  ·  view source on GitHub ↗
(
        &self,
        py: Python<'py>,
        url: PyBackedStr,
        kwds: Option<WebSocketParams>,
    )

Source from the content-addressed store, hash-verified

140 /// Make a WebSocket request to the given URL.
141 #[pyo3(signature = (url, **kwds))]
142 pub fn websocket<'py>(
143 &self,
144 py: Python<'py>,
145 url: PyBackedStr,
146 kwds: Option<WebSocketParams>,
147 ) -> PyResult<Bound<'py, PyAny>> {
148 let client = self.0.clone();
149 future_into_py(py, execute_websocket_request(client, url, kwds))
150 }
151}
152
153#[pymethods]

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected