jasonrbriggs / stomp.py

“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.
Apache License 2.0
491 stars 167 forks source link

use the defined timeout during the websocket connection #413

Closed Giz closed 1 year ago

Giz commented 1 year ago

Added timeout argument when creating WebSocket connection (similar to calling socket.create_connection in stomp.transport.Transport). In case of connection error, an exception of type websocket._exceptions.WebSocketException is raised (added to the except clause).