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

Method create_connection

tests/asyncio/test_client.py:150–153  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

148 """Client runs ClientConnection factory provided in create_connection."""
149
150 def create_connection(*args, **kwargs):
151 client = ClientConnection(*args, **kwargs)
152 client.create_connection_ran = True
153 return client
154
155 async with serve(*args) as server:
156 async with connect(

Calls 1

ClientConnectionClass · 0.50

Tested by

no test coverage detected