Closed nickgerig closed 2 weeks ago
Describe the bug Requests to stop() which maps to stopRecognition() during the connecting phase, before the connection is established, are ignored. This can result in sessions connecting and staying open unintentionally.
stop()
stopRecognition()
https://github.com/speechmatics/speechmatics-js-sdk/blob/b7745ed346166b2122e356be9580dbf2e61a4036/src/realtime/handlers.ts#L95
Expected behavior stopRecognition() should always end a RealTime session regardless of connection phase or any other state.
Describe the bug Requests to
stop()
which maps tostopRecognition()
during the connecting phase, before the connection is established, are ignored. This can result in sessions connecting and staying open unintentionally.https://github.com/speechmatics/speechmatics-js-sdk/blob/b7745ed346166b2122e356be9580dbf2e61a4036/src/realtime/handlers.ts#L95
Expected behavior
stopRecognition()
should always end a RealTime session regardless of connection phase or any other state.