Skip to content

Conversation

happy-river
Copy link

The ability to customize at subscription startup the context that will be passed to subscription interceptors was lost in the upgrade to Pedestal 0.7. Restore that functionality with a new option to subscription-websocket-endpoint that allows users to provide a function that is given access to the base context, the session and the config object and returns an updated context. Since the function signature is not compatible with the old :init-context option, the new option is named :context-initializer.

See also #41; the use case here is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant