add an observable for connecting a socket