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!: provide context object for callback functions #579

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

agaffney
Copy link
Contributor

@agaffney agaffney commented Apr 5, 2024

This provides a new protocol callback function parameter that provides the current client or server object and the connection ID. This allows easily identifying the connection that triggered a callback when using multiple connections and performing related operations within the protocol.

Fixes #578

BREAKING CHANGE: this changes the prototype for protocol callback functions

This provides a new protocol callback function parameter that provides
the current client or server object and the connection ID. This allows easily
identifying the connection that triggered a callback when using multiple
connections and performing related operations within the protocol.

Fixes #578

BREAKING CHANGE: this changes the prototype for protocol callback functions
@agaffney agaffney merged commit c36b5af into main Apr 5, 2024
8 checks passed
@agaffney agaffney deleted the feat/callback-context branch April 5, 2024 22:55
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.

Provide context for callback functions
2 participants