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

WebSocket support ? #534

Open
sylvain-ri opened this issue Jan 18, 2024 · 0 comments
Open

WebSocket support ? #534

sylvain-ri opened this issue Jan 18, 2024 · 0 comments

Comments

@sylvain-ri
Copy link
Contributor

I'm happy with APIFlask for most endpoints.
In my project, we do have a few WebSockets endpoints, and there I do not know how to use APIFlask:

  • how do i register WebSocket endpoints? Also with @app.route() ?
  • how can i validate the websocket messages? If not possible to validate the messages, is it possible to define their structure with @app.input(Schema)? This needs to be applied to the messages, and not to the connection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant