Completed moving webOS socket functionality to dedicated class