IPWorks IoT 2020 Python Edition

Questions / Feedback?

connect Method

Connects to the remote host.

Syntax

def connect(host: str, port: int) -> None: ...

Remarks

This method connects to the remote host. Calling this method is equivalent to setting the remote_host property to Host, setting remote_port to Port, and then setting the connected property to True.

By default the class will connect in plaintext. To enable SSL set ssl_enabled to True.

When connecting to a STOMP server, the class sends information from the following properties, if populated:

In addition to the above properties, the following configuration settings can be set before connecting (though in most cases this is not necessary):

  • SupportedVersions: Controls which STOMP versions the class advertises support for.
  • VirtualHost: Controls the virtual host to connect to. If left empty (default), the value from remote_host is used.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 Python Edition - Version 20.0 [Build 8265]