Skip to content

feat: Added option to send comment in Event#60

Merged
mpetrunic merged 1 commit intompetrunic:masterfrom
masarykadam:add-comment-eventmessage
Apr 3, 2023
Merged

feat: Added option to send comment in Event#60
mpetrunic merged 1 commit intompetrunic:masterfrom
masarykadam:add-comment-eventmessage

Conversation

@masarykadam
Copy link
Copy Markdown
Contributor

Hello,
first of all thanks for library. I am using this lib to create simple push server to which clients can connect and will remain connected to receive message continuously. There may be one problem - underlying connection can get closed on any path to the client. I resolved this problem with periodically sending comment messages which do not fire handlers on client-side and keep connection alive.

This is what this PR helps with - allows users to send comments in event messages. According to specification line is treated as comment when it starts with : symbol.

@masarykadam masarykadam changed the title Added option to send comment in Event feat: Added option to send comment in Event Apr 1, 2023
Copy link
Copy Markdown
Owner

@mpetrunic mpetrunic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, you are right, thank you!

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