Added idle to socketserver

Idle function will be run when not sampling