This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SDAM): emit SDAM events on close and reconnect
* Emit SDAM events on close and reconnect: According to the SDAM specification, when a server isMaster fails either due to a network issue, the server is not available, or ok !== 1 then the server type must change to Unknown. This must then emit a serverDescriptionChanged event since the type has changed. This pull emits that event now when the server is closed to set it as Unknown, and when the server reconnects to set it back to the proper type. This was previously happening on single server types. * Fix typo in comment
- Loading branch information