views/websocket: cleanup