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

Add volatile messages #1292

Closed
wants to merge 3 commits into from
Closed

Add volatile messages #1292

wants to merge 3 commits into from

Conversation

thoqbk
Copy link

@thoqbk thoqbk commented Apr 21, 2019

The kind of change this PR does introduce

  • A new feature
  • An update to the documentation

Current behaviour

If the server went down, the client keeps backing failed messages, so when the server comes back online, it will be overloaded by unneeded messages.

New behaviour

Add socket.volatile() to specify emitted data can be dropped if the connection is not ready to send.

Other information (e.g. related issues)

Related issues:

@thoqbk
Copy link
Author

thoqbk commented Apr 21, 2019

@darrachequesne I just submitted my first PR to add volatile messages but it's failed for Travis-CI checking although my code was run well on my local.

Can you help to have a look and give me some suggestions to fix this?

So sorry because this's my first PR on a big project like this.

Thanks.

@kroko
Copy link

kroko commented Apr 4, 2020

Bump ⏳

socketio/socket.io#2003
#1158
#1135
#821
#283

@darrachequesne
Copy link
Member

Merged into 7ddad2c and included in v3. Thanks!

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.

3 participants