question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature proposal: broadcast after patch

See original GitHub issue

Hey everyone & @colyseus/gladiators

I have a use-case where a broadcast message needs to arrive AFTER the state has been patched in the client-side. I’m thinking how the API for this should look like.

As broadcast currently allows passing options along with it (as options.except: https://github.com/colyseus/colyseus/issues/136), I’m thinking on enabling this now:

this.broadcast(data, { delayed: true });

A “delayed” broadcast means it will be sent only after the patch has been sent. I’m afraid this is not intuitive enough.

To be more intuitive, we could use afterPatch, but it looks weird:

this.broadcast(data, { afterPatch: true });

What are your thoughts? Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
seiyriacommented, Feb 15, 2019

I think if you’re not going to offer analogs like beforePatch, then it doesn’t make sense to use afterPatch. I would be explicit: delayUntilFirstPatch or delayUntilAfterFirstPatch or the like.

0reactions
developgiikercommented, May 26, 2020

Thanks for the explain. I got the point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Broadcast group (distribution list) - Delta.Chat
Introduce Experimental Broadcast Groups Fix for speedup chatlist #1602 Many ... Broadcast messages (for later version after 1.0 release) Feature Proposal.
Read more >
Programmatic Guaranteed deals - Display & Video 360 Help
A request for proposal (RFP) is a document sent from media planners like you to inventory providers that request media (inventory) to purchase...
Read more >
2022 Broadcasts - NJ.gov
2022 Broadcasts · December 21 · December 14 · December 7 · December 1 · November 30 · November 23 · November 16...
Read more >
Film Proposal Template: Move your Film into Development
A Film Proposal is a 1-page document to pitch your idea to key team members and hand out at film markets. What your...
Read more >
Issues workflow - GitLab Docs
To create a feature proposal, open an issue on the issue tracker. In order to help track the feature proposals, we have created...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found