Did you know there's a setting that will prevent WiFi from sleeping? When WiFi goes to sleep, it can cause data disconnects which may result in "unexpected bahvior" with apps that stream music or connect to chat clients.
home - menu - settings - wireless & networks - wi-fi settings - menu - advanced - wi-fi sleep policy:
you'll have the option to:
(Sleep) when screen turns off (default)
Never (sleep) when plugged in