Make socket singleton, add initialization for both mobile and desktop.