pub fn connect(routes: Routes) -> Result<Socket, Error>