Finely chop the onion.
Melt butter in a pan.
Add onions and sauté until they turn translucent.
Add flour and cook for 1–2 minutes.
Gradually pour in milk while stirring and bring to a simmer.
Season with salt and pepper.
Turn off the heat once the sauce thickens.