INPUT_OBJECT
SetSessionStatusInput
SetSessionStatusInput represents a user's status within a single session (browser tab, game, desktop application, mobile application, etc.).
link GraphQL Schema definition
1 input SetSessionStatusInput { 10 2 # activity is the action the user is performing in your application. The purpose 3 # of an activity is to allow the user's 4 # friends and related users to join in on whatever the user is doing. If the user 5 # is not performing any action that 6 # other users can join in on (e.g. watching a VOD, browsing their settings page) 7 # or is not performing any action at 8 # all, this should be set to null. 9 ActivityInput : 20 11 # availability is the state of the user's session in your application. You should 12 # set it to ONLINE if the user is 13 # known to be at their device, IDLE if they are not, and OFFLINE if your 14 # application is currently terminating. 15 # 16 # Note that if your application fails to send an OFFLINE heartbeat before 17 # terminating, the session will automatically 18 # expire after some time without a heartbeat. 19 AvailabilityInput! : 30 21 # sessionID must be supplied and can be any string unique to this session. 22 # Generating a random UUID when your 23 # application starts and sending it for each setSessionStatus is a good idea. 24 # 25 # Each instance of your application should send the same ID for each of its 26 # setSessionStatus calls, but two instances 27 # of your application running at the same time should never have the same session 28 # ID. 29 String! : 31 }