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

Passes Context into ConnCallback #122

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

Michael9127
Copy link

This moves context creation before the ConnCallback invocation and passes it into the callback. Allowing state to be set for the duration of the connection.

@belak
Copy link
Collaborator

belak commented Oct 9, 2019

I believe by convention the context is passed in as the first argument, otherwise, looks good to go!

@Michael9127
Copy link
Author

fixed, thanks!

@belak
Copy link
Collaborator

belak commented Oct 9, 2019

Awesome! Thanks! This is a breaking change so the first tagged version to have this will probably be 0.3.

@belak belak merged commit 63518b5 into gliderlabs:master Oct 9, 2019
@Michael9127 Michael9127 deleted the pass-ConnCallback-context branch October 9, 2019 16:08
@rtucek
Copy link

rtucek commented Mar 19, 2020

@belak would you mind tagging this as 0.3?
I'm eagerly waiting for this hook for injecting ctx values as soon as a client connects.

@belak
Copy link
Collaborator

belak commented Mar 19, 2020

Yep, done.

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.

None yet

3 participants