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

Switch from deprecated ClusterWS/cws to ws package #15932

Merged
merged 2 commits into from
Mar 24, 2021

Conversation

ClearlyClaire
Copy link
Contributor

Fixes #15184, #15898

Code changes from #15184 (comment) rebased over latest code

I have verified this to work correctly with just a few connections on a mostly-single-user instance, but I did not make any performance measurement, and I am not quite sure how to go about doing those.

@ClearlyClaire ClearlyClaire marked this pull request as ready for review March 20, 2021 18:48
Copy link

@diegoboten diegoboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that this resolved the issue for mastodon-streaming and is now working correctly on my server. (Ubuntu 20.4) Thank you so much.

Copy link

@diegoboten diegoboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm correct operation of mastodon-streaming following these changes.

Copy link

@diegoboten diegoboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This corrects the issue.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@shleeable
Copy link
Contributor

ws supports nodejs 14. which is nice.

@Gargron Gargron merged commit 49814d5 into mastodon:main Mar 24, 2021
Gargron added a commit that referenced this pull request May 1, 2021
Third argument of `ping` is the callback

Regression from #15932
Gargron added a commit that referenced this pull request May 2, 2021
Third argument of `ping` is the callback

Regression from #15932
erictapen added a commit to erictapen/nixpkgs that referenced this pull request May 17, 2021
erictapen added a commit to NixOS/nixpkgs that referenced this pull request May 21, 2021
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
* Switch from deprecated ClusterWS/cws to ws package

Fixes mastodon#15184

Co-authored-by: Edho Arief <me@nanaya.pro>

* Make bufferutil and utf-8-validate optional dependencies

Co-authored-by: Edho Arief <me@nanaya.pro>
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
)

Third argument of `ping` is the callback

Regression from mastodon#15932
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate from discontinued cws to uWebSockets.js or similar
5 participants