Client.send_message

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

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

Parameters

message (str) – Message for the Server.

Raises

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

Returns

Reply from the server

Return type

str