Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Emit stream events in stream_connection.ts#530

Closed
CJxD wants to merge 1 commit intogoogleapis:mainfrom
CJxD:patch-1
Closed

Emit stream events in stream_connection.ts#530
CJxD wants to merge 1 commit intogoogleapis:mainfrom
CJxD:patch-1

Conversation

@CJxD
Copy link
Copy Markdown

@CJxD CJxD commented Nov 25, 2024

When using the managedwriter, I found that the connection often needs to reconnect, but my calling code was unable to determine when this happens.

In this commit I have forwarded the various events from the underlying connection, except 'close' is only called when the stream_connection has been instructed to close, and a new event 'reconnect' is emitted when the stream has been closed and reopened.

Fixes #529 🦕

@CJxD CJxD requested review from a team and Linchin November 25, 2024 15:24
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Nov 25, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: bigquerystorage Issues related to the googleapis/nodejs-bigquery-storage API. labels Nov 25, 2024
* feat: emit stream events in stream_connection.ts (googleapis#529)
@CJxD
Copy link
Copy Markdown
Author

CJxD commented Nov 25, 2024

I'm having some difficulty with the Google CLA - I have signed it on behalf of the organisation and added the members to our group [email protected] but it doesn't seem to be picking it up.

It might be worth closing this PR and making the changes yourself. I will continue with my workaround for now.

@alvarowolfx alvarowolfx requested review from alvarowolfx and removed request for Linchin November 25, 2024 18:22
@alvarowolfx
Copy link
Copy Markdown
Contributor

thanks for the PR @CJxD, I'll take over from here and try to add those improvements.

@alvarowolfx
Copy link
Copy Markdown
Contributor

Superseded by #533

@alvarowolfx alvarowolfx closed this Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/nodejs-bigquery-storage API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emit close/reconnect events on StreamConnections

2 participants