Send messages when a websocket connection ends