Running code in a service after a response has been sent. #2839
Unanswered
Aurora2500
asked this question in
Q&A
Replies: 1 comment
-
You could use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm making a webserver that deals with websockets. It will need to run some code after it knows that a websocket connection has been made, so it needs to wait for the service to send a response to complete the protocol change handshake. But all the API I see for making services relies on returning a type for the HTTP response, making it impossible to run code after. Is there any way I can reply with a Response to a request and then run some more code after?
Beta Was this translation helpful? Give feedback.
All reactions