VR code server and client logic