connect Method
Connects to the Azure Relay Service.
Syntax
def connect() -> None: ...
Remarks
on_connect establishes a WebSocket connection to the Azure Relay Service. The following properties are applicable when calling this method:
- access_key (required)
- access_key_name (required)
- hybrid_connection (required)
- namespace_address (required)
- timeout
After the connection is established data may be sent by setting the data_to_send property or by calling send, send_text, or send_file.
Incoming data is received through the on_data_in event.
To disconnect call the disconnect method.