Closed holyxiaoxin closed 6 years ago
Hi @holyxiaoxin, the sessionId
attribute is attached to the room
instance.
local room = client:join("room_name")
room:on("join", function()
print(client.id) -- id of the client
print(room.sessionId) -- id of the session
end)
Cheers!
My bad, they clarified this in the next line. And thanks for sharing this library!
I am able to retrieve client.id but not able to get client.sessionId. Is this deliberate since there is no need for client.sessionId?