SocketWriter
SocketWriter ¶
Writes lines to a connection.
__init__ ¶
__init__(connection: WritableConnection)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
connection |
WritableConnection
|
The connection to send data to. |
required |
write
async
¶
write(data: str) -> None
Write text data over the connection.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
str
|
Data to write over the connection. |
required |