Suave is a simple web development F# library providing a lightweight web server and a set of combinators to manipulate route flow and task composition.
By default the socket computation expression handles any errors transparently on both writing and reading from the websocket shutting down the connection.
You may want to add your own additional error handling logic to catch and handle any errors raised when reading and writing from a websocket. Some scenarios where this may be useful:
Alerting the rest of the application that a connection is closed.
Unsubscribing and/or shutting down processes used by the websocket connection.