Client.send_message

Client.send_message(msg: str)str[source]

Complete communication process. Connects to the server, sends a message, gets the reply and closes the connection.

Raises

OSError – Various socket errors, e.g. address or timeout

Returns

Reply from the server

Return type

str