Not wifi, but in the much bigger metro network in Tokyo, You can use mobile connection (LTE) even in-between stations. They probably have underground relays.
Likewise almost everywhere on Boston's subway -- though it's worth noting that the Boston subway as a whole is smaller and carries less people than New York's Lexington Avenue line.
In the SF Bay Area, BART has LTE too. Even when it's going under the Bay.