Skip to content

Commit

Permalink
Add instance queue events (#142)
Browse files Browse the repository at this point in the history
* Add "avatar" and "world" to listed contentRefreshContentTypeEnum values

* Add instance queue events
  • Loading branch information
VinyarionHyarmendacil authored Apr 2, 2024
1 parent 3475834 commit 4ea2baf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions content/tutorials/websocket.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,34 @@ A "`content-refresh`" event is sent when the user adds or removes profile images
}
```


#### instance-queue-joined
A "`instance-queue-joined`" event is sent when the user queues to join an instance.

```json
{
"type": "instance-queue-joined",
"content": {
"instanceLocation": ":locationString", // Refer to https://vrchatapi.github.io/tutorials/instances/
"position": <number> // Integer position in queue
}
}
```


#### instance-queue-ready
A "`instance-queue-ready`" event is sent when the user is at the front of the queue.

```json
{
"type": "instance-queue-ready",
"content": {
"instanceLocation": ":locationString", // Refer to https://vrchatapi.github.io/tutorials/instances/
"expiry": ":dateTimeString" // Time at which priority will be lost
}
}
```

---

### Group Events
Expand Down

0 comments on commit 4ea2baf

Please sign in to comment.