MCPcopy Index your code
hub / github.com/python-websockets/websockets / connect_socks_proxy

Function connect_socks_proxy

src/websockets/sync/client.py:431–437  ·  view source on GitHub ↗
(
        proxy: Proxy,
        ws_uri: WebSocketURI,
        deadline: Deadline,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

429except ImportError:
430
431 def connect_socks_proxy(
432 proxy: Proxy,
433 ws_uri: WebSocketURI,
434 deadline: Deadline,
435 **kwargs: Any,
436 ) -> socket.socket:
437 raise ImportError("connecting through a SOCKS proxy requires python-socks")
438
439else:
440 SOCKS_PROXY_TYPES = {

Callers 1

connectFunction · 0.70

Calls 3

ProxyErrorClass · 0.85
timeoutMethod · 0.80
connectMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…