connect socketclient to main app