Skip to content

Commit 4ea2baf

Browse files
Add instance queue events (#142)
* Add "avatar" and "world" to listed contentRefreshContentTypeEnum values * Add instance queue events
1 parent 3475834 commit 4ea2baf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

content/tutorials/websocket.markdown

+28
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,34 @@ A "`content-refresh`" event is sent when the user adds or removes profile images
360360
}
361361
```
362362

363+
364+
#### instance-queue-joined
365+
A "`instance-queue-joined`" event is sent when the user queues to join an instance.
366+
367+
```json
368+
{
369+
"type": "instance-queue-joined",
370+
"content": {
371+
"instanceLocation": ":locationString", // Refer to https://vrchatapi.github.io/tutorials/instances/
372+
"position": <number> // Integer position in queue
373+
}
374+
}
375+
```
376+
377+
378+
#### instance-queue-ready
379+
A "`instance-queue-ready`" event is sent when the user is at the front of the queue.
380+
381+
```json
382+
{
383+
"type": "instance-queue-ready",
384+
"content": {
385+
"instanceLocation": ":locationString", // Refer to https://vrchatapi.github.io/tutorials/instances/
386+
"expiry": ":dateTimeString" // Time at which priority will be lost
387+
}
388+
}
389+
```
390+
363391
---
364392

365393
### Group Events

0 commit comments

Comments
 (0)