Added connected event for workers inlibclient