Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/stompman/stompman/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ReceiptFrame,
SendFrame,
)
from stompman.logger import LOGGER
from stompman.subscription import AckableMessageFrame, ActiveSubscriptions, AutoAckSubscription, ManualAckSubscription
from stompman.transaction import Transaction

Expand All @@ -29,7 +30,9 @@ class Client:
PROTOCOL_VERSION: ClassVar = "1.2" # https://stomp.github.io/stomp-specification-1.2.html

servers: list[ConnectionParameters] = field(kw_only=False)
on_error_frame: Callable[[ErrorFrame], Any] | None = None
on_error_frame: Callable[[ErrorFrame], Any] | None = lambda error_frame: LOGGER.error(
"received error frame: %s", error_frame
)

heartbeat: Heartbeat = field(default=Heartbeat(1000, 1000))
ssl: Literal[True] | SSLContext | None = None
Expand Down