Expanded socket handler to allow sending to all connected sockets.