-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Support for Sse decorator #398
Comments
Do you have a good idea that how SDK should be generated? If you have insight about it, can you write an example SDK code about that? |
Honestly, neither do I know how Nestia generates sdk internally yet, nor am I skilled enough to contribute to your project. So, if you think this issue is not part of your primary goals, it's fine to close the issue. Maybe I'll re-open this issue when I get better understanding to this project and become ready to contribute. |
I mean just interface design goal of SDK what you want. Don't be burdened please. |
Sure. Would this be what you are expecting?
Just wrote it similar to how normal requests are handled.
or maybe, the interface can return the EventSource instance, so that the user can add listeners. *edit
|
Hallo @samchon Thank you for the amazing work. Also thinking about how it can be integrate in nestia:
I've tested this approch with react-native client and it work fine.
Again thank you for your amazing work. Cheers. |
TypedRoute is not supporting Sse decorator from @nestjs/common, thus cannot use Nestia for SSE endpoints.
For example, for the code something like below,
if I use @TypedRoute.Get in place of @sse, this endpoint will work as a normal GET method.
Could you please add @sse decorator to TypedRoute, or is there any work around for SSE endpoints?
The text was updated successfully, but these errors were encountered: