Biden last night was basically a heckler, and comedians know that you can’t ignore a heckler, you have to turn the tables on them. You want to go with the one liner, but it has to be a really good one, or the audience may end up sympathizing with the heckler and turning on you. So, you may need to engage the heckler for a little bit, until he gives you the ammunition that you need to cut him down to size. I think Ryan did that pretty well last night, and got several good jabs in at Biden that made him look like the fool he is.
All I know is I would not have had the patience, civility and calmness that Ryan did. He was a class act and made Joe look like even more of a classless, disrespectful buffoon.
As a former night club comic I would say that the best “heckler stopper” line I ever heard was to address the heckler with,” Look pal, do I jump up and down on the edge of the bed while you’re trying to work?”