MCPcopy
hub / github.com/mongodb/node-mongodb-native / emit

Method emit

src/utils.ts:411–411  ·  view source on GitHub ↗
(event: 'stateChanged', state: string, newState: string)

Source from the content-addressed store, hash-verified

409interface ObjectWithState {
410 s: { state: string };
411 emit(event: 'stateChanged', state: string, newState: string): void;
412}
413interface StateTransitionFunction {
414 (target: ObjectWithState, newState: string): void;

Callers 15

createPoolMethod · 0.65
dataHandlerFunction · 0.65
UnifiedMongoClientClass · 0.65
triggerErrorFunction · 0.65
connection.test.tsFile · 0.65
testFunction · 0.65
connect.test.tsFile · 0.65
connection.test.tsFile · 0.65
triggerMethod · 0.65

Calls

no outgoing calls

Tested by 7

triggerErrorFunction · 0.52
testFunction · 0.52
triggerMethod · 0.52
stubBeforeHandshakeFunction · 0.52
triggerMethod · 0.52
emitFunction · 0.52
transitionTopologyFunction · 0.52