Lua Class - client

client is a class in the Teverse Lua API that contains 4 properties, 0 methods and 0 events.

This class cannot be constructed, it is managed by Teverse.

Every connected client is represented through this class. You can access a list of connected clients through the networking singleton.

For example, you could iterate over the list of connected clients to your networked tevapp with the following snippet:

for _, client in pairs(teverse.networking.clients) do
    print(client.name .. " is in our game!")
end

To access clients, ensure that your tevapp manifest contains the networking permission otherwise the singleton will not be accessible within your app/game.

Clients can not be constructed in Teverse as they are fully managed by the engine.

Properties
READONLY
boolean beta

True if this account has beta privelages

CODE SAMPLE
print(client.beta) --> true
READONLY
string id

Unique GUID for this user

CODE SAMPLE
print(client.id) --> ""
READONLY
number membership

CODE SAMPLE
print(client.membership) --> 1.0
READONLY
string name

Unique name for this user

CODE SAMPLE
print(client.name) --> ""
Methods
Events

Some sections of our docs are maintained on github.