chore(socket) move out function connect
feature(socket) if id in use - reconnect