It seems like to achieve a "normal" shutdown of a websocket connection, one needs to do a dance like:
- Send Close message
- Wait for receiving a Close message
- Actually close the connection
The Close method of today closes the connection immediately, without warning or graceful shutdown. Would it be desirable to have a Shutdown method like golang's http servers, which does the dance explained above for the user?