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

feat: Add a simple function to send Data-Only #2

Open
christopher-kleine opened this issue Sep 12, 2023 · 0 comments
Open

feat: Add a simple function to send Data-Only #2

christopher-kleine opened this issue Sep 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@christopher-kleine
Copy link
Owner

Currently to send a simple Message, one has to write:

hub.Publish(&sse.Event{Data: "foo"})

It would be easier to send it this way instead:

hub.PublishMessage("foo")

Under the hood, this can be the same.

The same applies to PublishFiltered (PublishFilteredMessage).

@christopher-kleine christopher-kleine self-assigned this Sep 12, 2023
@christopher-kleine christopher-kleine added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant