server & client: REG event encoded/decoded