What is the usage of UOnlineSessionClient?

Hi,

While trying to setup networking with the onlinesubsystem I stumbled across the UOnlineSession and UOnlineSessionClient. I can’t quite seem to figure out how they are supposed to be used. UOnlineSessionClient seems to implement a lot of the features I am currently writing into my game instance but it doesn’t seem to be used. Is this work-in-progress?

The shootergame example seems to ignore UOnlineSessionClient completely. For example:

UGameInstance::OnSessionUserInviteAccepted calls UOnlineSession::OnSessionUserInviteAccepted

UShooterGameInstance::OnSessionUserInviteAccepted overrides this and instead of calling the above function it writes its own handling.

Any help in understanding this would be greatly appreciated.

Best,
Adam

1 Like