8000 Feature proposal: broadcast after patch · Issue #218 · colyseus/colyseus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature proposal: broadcast after patch #218
Closed
@endel

Description

@endel

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: #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!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0