From 4ea2bafa0863b1f74909049941b10228923c60f5 Mon Sep 17 00:00:00 2001 From: Vinyarion <38413862+VinyarionHyarmendacil@users.noreply.github.com> Date: Mon, 1 Apr 2024 20:00:48 -0500 Subject: [PATCH] Add instance queue events (#142) * Add "avatar" and "world" to listed contentRefreshContentTypeEnum values * Add instance queue events --- content/tutorials/websocket.markdown | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/content/tutorials/websocket.markdown b/content/tutorials/websocket.markdown index 2577a05..401a943 100644 --- a/content/tutorials/websocket.markdown +++ b/content/tutorials/websocket.markdown @@ -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": // 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