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

Optimization for coding with pub-sub pattern #1111

Open
nighca opened this issue Nov 26, 2024 · 0 comments
Open

Optimization for coding with pub-sub pattern #1111

nighca opened this issue Nov 26, 2024 · 0 comments

Comments

@nighca
Copy link
Collaborator

nighca commented Nov 26, 2024

Pub-Sub Pattern

broadcast "foo", data

onMsg "foo", data => {
  // ...
}

Optimizations

  • Go to listener / broadcaster
  • Type safety: check message name & data
  • Update APIs (broadcast & onMsg)
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

No branches or pull requests

1 participant