stablekernel / aqueduct

Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.
https://aqueduct.io
BSD 2-Clause "Simplified" License
2.41k stars 279 forks source link

Add Websocket Endpoints #628

Open rullyalves opened 5 years ago

rullyalves commented 5 years ago

Is there any possibility of adding a websockets controller similar to the Java Spring Boot websocket controller? so that there are endpoints of the application and the websockets work in a way similar to REST, I think this would make it easier to use and would be a great abstraction.

itsjoeconway commented 5 years ago

I like the concept of this, but because there is no standard for websocket message content (and this would be required to do event routing), I think this should exist as a separate package built on top of Aqueduct.

rullyalves commented 5 years ago

Well, the idea of ​​becoming a reality, standardizing the sending of messages via websocket, would be a pattern similar to the STOMP protocol, I think it would be a great abstraction, have some idea of ​​where I should start in order to build this on the Aqueduct? I would like to understand more about how Aqueduct works with websockets and how I could interact with it, thanks for the attention.

itsjoeconway commented 5 years ago

https://aqueduct.io/docs/http/websockets/