Heat oil in a skillet over medium heat; saute onion until translucent, 5 to 10 minutes.
Add eggs to onion and season with salt. Cook and stir until eggs are set, about 5 minutes. Stir shrimp and cocktail sauce into eggs; cook until warm, 3 to 4 minutes.