In a skillet, over medium heat, melt the butter. Add the onions and cook until translucent
Add the garlic and cook until garlic is fragrant about 30 seconds
Add the flour and mix well to coat the onions and garlic.
Add ½ cup of chicken stock, mixing well to remove any lumps.
Transfer onion mixture to the slow cooker insert.
Add the rest of the chicken stock, corn, herbs, red pepper flakes if using, black pepper, and salt. Mix well
Cook on “high” for 3 hours
Add the shrimp, cream cheese, and heavy cream
Cook on “high” for a further 30mins-1 hour until shrimp is pink through
Adjust seasoning as needed
Serve warm garnished with chopped chives, more red pepper flakes, etc.