Nakama C++ Client SDK 2.5.1
Client for Nakama Server
NUserPresence Struct Reference

A user session associated to a stream, usually through a list operation or a join/leave event. More...

#include <NUserPresence.h>

Public Attributes

std::string userId
 The user this presence belongs to. More...
 
std::string sessionId
 A unique session ID identifying the particular connection, because the user may have many. More...
 
std::string username
 The username for display purposes. More...
 
bool persistence = false
 Whether this presence generates persistent data/messages, if applicable for the stream type. More...
 
std::string status
 A user-set status message for this stream, if applicable. More...
 

Detailed Description

A user session associated to a stream, usually through a list operation or a join/leave event.

Member Data Documentation

◆ persistence

bool NUserPresence::persistence = false

Whether this presence generates persistent data/messages, if applicable for the stream type.

◆ sessionId

std::string NUserPresence::sessionId

A unique session ID identifying the particular connection, because the user may have many.

◆ status

std::string NUserPresence::status

A user-set status message for this stream, if applicable.

◆ userId

std::string NUserPresence::userId

The user this presence belongs to.

◆ username

std::string NUserPresence::username

The username for display purposes.


The documentation for this struct was generated from the following file: