[socket.io] add support for v2 using a compatibility shim GitOrigin-RevId: ef52a3d8e4fdf191f6a8c1a530dfce25f3a11466