IPWorks MQ 2020 Python Edition

Questions / Feedback?

on_connection_status Event

Fired to indicate changes in connection state.

Syntax

class AzureRelayReceiverConnectionStatusEventParams(object):
  @property
  def connection_event() -> str: ...
  @property
  def status_code() -> int: ...
  @property
  def description() -> str: ...

# In class AzureRelayReceiver:
@property
def on_connection_status() -> Callable[[AzureRelayReceiverConnectionStatusEventParams], None]: ...
@on_connection_status.setter
def on_connection_status(event_hook: Callable[[AzureRelayReceiverConnectionStatusEventParams], None]) -> None: ...

Remarks

The on_connection_status event is fired when the connection state changes: completion of a firewall or proxy connection, completion of a security handshake, etc.

The ConnectionEvent parameter indicates the type of connection event. Values may include:

Firewall connection complete.
SSL handshake complete (where applicable).
WebSocket handshake complete.
Remote host connection complete.
Remote host disconnected.
WebSocket connection broken.
SSL connection broken.
Firewall host disconnected.

StatusCode has the error code returned by the TCP/IP stack. Description contains a description of this code. The value of StatusCode is equal to the value of the error.

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