jooby icon indicating copy to clipboard operation
jooby copied to clipboard

Wait for Websocket to finish send(...)

Open Dominilk opened this issue 5 years ago • 0 comments

Before I want to close my WebSocket I want to send a quick message to let the client know the details of why the connection was closed. Unfortunately, the message never arrives and I think the reason for that is that send(...) is asynchronous and close aborts the sending-process. A method to wait until the sending process has ended would be very convenient.

Thanks, Dominik

Dominilk avatar Jan 23 '21 17:01 Dominilk