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

Implemented WebSocket connected callback. #1055

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

akotulu
Copy link
Contributor

@akotulu akotulu commented Sep 2, 2024

Implemented connected callback to be able to send custom 3000-4999 status codes to the client.

@akotulu
Copy link
Contributor Author

akotulu commented Sep 13, 2024

Is there something wrong with the improvement? It has been 2w :)
I can add extra class which generates these custom status codes. Implemented it to support WS events with authentication. If user tries to subscribe to event without valid token, 4000 status code is returned and connection closed.

@walkor walkor merged commit 219e2a1 into walkor:master Sep 17, 2024
18 checks passed
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.

2 participants