From d21b3c8f2a30d69a1fdd59b1d090a10316e2aea1 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 5 Mar 2019 00:59:37 -0300 Subject: [PATCH] lvsp: add "common logic scenarios" --- docs/lvsp.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/lvsp.md b/docs/lvsp.md index a022f25..c59c073 100644 --- a/docs/lvsp.md +++ b/docs/lvsp.md @@ -209,3 +209,41 @@ Sent by the client to signal the destruction of a voice channel. Be it a channel being deleted, or all members in it leaving. Same data as CHANNEL\_ASSIGN. + +## Common logic scenarios + +### User joins an unitialized voice channel + +Since the channel is unitialized, both logic on initialization AND +user join is here. + + - Client will send a CHANNEL\_REQ. + - Client MAY send a VST\_CREATE right after as well. + - The Server MUST process CHANNEL\_REQ first, so the Server can keep + a lock on channel operations while it is initialized. + - Reply with CHANNEL\_ASSIGN once initialization is done. + - Process VST\_CREATE **TODO** + +### Updating a voice channel + + - Client sends CHANNEL\_UPDATE. + - Server DOES NOT reply. + +### Destroying a voice channel + + - Client sends CHANNEL\_DESTROY. + - Server MUST disconnect any users currently connected with its + voice websocket. + +### User joining an (initialized) voice channel + + - Client sends VST\_CREATE + - **TODO** + +### User moves a channel + +**TODO** + +### User leaves a channel + +**TODO**