`Message mismatch at position ${messagePointer-1}: expected ${expectedMessage.constructor.name} with payload ${Buffer.from(expectedMessage.toPayload()).toString('hex')}, got ${message.constructor.name} with payload ${Buffer.from(raw).toString('hex')}`,
);
}
if(messageinstanceofYGOProMsgNewTurn){
room.setNewTurn(message.player);
}elseif(messageinstanceofYGOProMsgNewPhase){
room.setNewPhase(message.phase);
}elseif(messageinstanceofYGOProMsgResponseBase){
room.setLastResponseRequestMsg(
expectedMessageasYGOProMsgResponseBase,// use exact same reference as the one in the record to avoid issues in response matching