sockets online/offline