[WebSocket example] Message input is hidden when connection is closed.