sockets controller basic