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

fix(websocket/types): pass full instance and extend context with its … #92

Conversation

hesxenon
Copy link
Contributor

Since the ElysiaWsContext hasn't been extended with the Instance['request'] websocket handlers didn't have access to derivations and such.

This PR simply passes the full instance instead of just the schema definitions and extends the context with its request type

fixes #59

@SaltyAom
Copy link
Member

SaltyAom commented Sep 4, 2023

This is super helpful!
Thanks a lot!

@SaltyAom SaltyAom merged commit ceb1fcd into elysiajs:main Sep 4, 2023
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.

WebSocket beforeHandle unable to access use'd plugins / state / derive's
2 participants