Emit resume instead of connect on resumed connections

Raise "resume" instead of "connect" when a connection is re-established
after a connection drop.  This prevents logic meant to resynchronize
state after a full reconnection from being invoked whenever the
connection was temporarily dropped.
This commit is contained in:
Hornwitser committed 2021-02-19 14:28:19 +01:00
1 parent b4cbe2355d
commit 1de8b76303
6 files changed
+26 -18

No files matched your search

+1 -1
View File
@@ -621,7 +621,7 @@ until the connection is re-established. This means that if your plugin
sends a lot of events or requests, they can end up being queued up in a
buffer for a long time and sent out all at once. To avoid this you
should be throtteling and/or stopping your requests/events after `drop`
has been raised, and continue back as normal when `connect` is raised.
has been raised, and continue back as normal when `resume` is raised.
Collecting Statistics