gofr icon indicating copy to clipboard operation
gofr copied to clipboard

Support for writing response without returning from WebSocket handler

Open shashank-zopsmart opened this issue 1 year ago • 1 comments

Current Behaviour

  • In order to send response to client, we need to return values, from the WebSocket handler.
  • This means that client will again have to make request to get response (if it needs again).
  • There can be case when WebSocket handler needs to write response multiple times without having the client need to make request again (as WebSocket provides a simultaneous two-way communication channel over a single connection).

Expected Behaviour

  • There should be some exposed method in Context so that response can be written without having to return values from the handlers.

shashank-zopsmart avatar Jul 31 '24 15:07 shashank-zopsmart

Thankyou for mentioning the issue. Will take it up.

Umang01-hash avatar Aug 01 '24 07:08 Umang01-hash