Feature/ws add reason to close

add reason when a websocket close