send_socket#
- ignis.utils.Utils.send_socket(sock: socket, message: str, errors: Literal['strict', 'replace', 'ignore'] = 'strict') str #
Send a message to the socket.
- Parameters:
sock (
socket
) -- An instance of a socket.message (
str
) -- The message to send.errors (
Literal
['strict'
,'replace'
,'ignore'
], default:'strict'
) -- The error handling scheme that will be passed tobytes.decode()
.
- Return type:
- Returns:
The response from the socket.