Support the socket.io v1 style

for io.set('resource').
New version v14.6.21.