Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WebSocketLike to accept null types #2843

Closed
wants to merge 1 commit into from

Conversation

ranmocy
Copy link

@ranmocy ranmocy commented Mar 25, 2022

This is to make the interface compatible with the popular npm package "reconnecting-websocket": https://github.com/pladaria/reconnecting-websocket/blob/05a2f7cb0e31f15dff5ff35ad53d07b1bec5e197/reconnecting-websocket.ts#L196-L212

This change makes sense for general purposes, because the callbacks are initially expected to be null before user assigns it manually.

This is to make the interface compatible with the popular npm package "reconnecting-websocket": https://github.com/pladaria/reconnecting-websocket/blob/05a2f7cb0e31f15dff5ff35ad53d07b1bec5e197/reconnecting-websocket.ts#L196-L212

This change makes sense for general purposes, because the callbacks are initially expected to be null before user assigns it manually.
@ricmoo ricmoo added the minor-bump Planned for the next minor version bump. label Apr 13, 2022
@ricmoo ricmoo added on-deck This Enhancement or Bug is currently being worked on. fixed/complete This Bug is fixed or Enhancement is complete and published. labels Aug 15, 2022
@ricmoo
Copy link
Member

ricmoo commented Aug 19, 2022

This has been updated in v5.7.0.

Thanks! :)

@ricmoo ricmoo closed this Aug 19, 2022
@ricmoo ricmoo removed the on-deck This Enhancement or Bug is currently being worked on. label Aug 19, 2022
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed/complete This Bug is fixed or Enhancement is complete and published. minor-bump Planned for the next minor version bump.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants