MCPcopy Index your code
hub / github.com/reactive-python/reactpy / Connection

Class Connection

src/py/reactpy/reactpy/backend/types.py:45–58  ·  view source on GitHub ↗

Represents a connection with a client

Source from the content-addressed store, hash-verified

43
44@dataclass
45class Connection(Generic[_Carrier]):
46 """Represents a connection with a client"""
47
48 scope: MutableMapping[str, Any]
49 """An ASGI scope or WSGI environment dictionary"""
50
51 location: Location
52 """The current location (URL)"""
53
54 carrier: _Carrier
55 """How the connection is mediated. For example, a request or websocket.
56
57 This typically depends on the backend implementation.
58 """
59
60
61@dataclass

Callers 4

mainFunction · 0.90
model_streamFunction · 0.90
model_streamFunction · 0.90
openMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected