“stomp.py” is a Python client library for accessing messaging servers (such as ActiveMQ or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.
According to the docstrings for stomp.ConnectionListener, the function on_disconnecting on that class should be called before a DISCONNECT frame is sent to the server.
However, regardless of whether the disconnect is triggered by a heartbeat timeout or manually, I find this function is never triggered.
According to the docstrings for
stomp.ConnectionListener
, the functionon_disconnecting
on that class should be called before a DISCONNECT frame is sent to the server.However, regardless of whether the disconnect is triggered by a heartbeat timeout or manually, I find this function is never triggered.