SocketModeEvents Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides observational, per-geo Socket Mode lifecycle events.
public sealed class SocketModeEvents
type SocketModeEvents = class
Public NotInheritable Class SocketModeEvents
- Inheritance
-
SocketModeEvents
Remarks
Subscribe before starting the host to observe initial readiness. Handlers run synchronously and may run concurrently for different geos; keep them short and thread-safe. Handler failures are logged and do not interrupt delivery or recovery. Normal host shutdown does not raise Disconnected.
Events
| Name | Description |
|---|---|
| Disconnected |
Raised when delivery is interrupted, or recovery stops after a terminal negotiation failure. |
| Ready |
Raised when a connection becomes ready, including replacements during recovery or planned token rotation. |
| Reconnected |
Raised after readiness when delivery resumes following an unexpected interruption. Planned token rotation without an interruption does not raise this event. |