package proxy import ( "net/http" "github.com/m1k1o/neko-rooms/internal/utils" ) func roomWait(w http.ResponseWriter, r *http.Request) { w.Write([]byte(``)) } func RoomNotFound(w http.ResponseWriter, r *http.Request) { utils.Swal2Response(w, `
X

Room not found!

The room you are trying to join does not exist.
You can wait on this page until it will be created.
`) roomWait(w, r) } func RoomNotRunning(w http.ResponseWriter, r *http.Request) { utils.Swal2Response(w, `
!

Room is not running!

The room you are trying to join is not running.
You can wait on this page until it will be started.
`) roomWait(w, r) } func RoomNotReady(w http.ResponseWriter, r *http.Request) { utils.Swal2Response(w, `
i

Room is not ready, yet!

Please wait, until this room is ready so you can join. This should happen any second now.
`) } func RoomReady(w http.ResponseWriter, r *http.Request) { utils.Swal2Response(w, `

Room is ready!

Requested room is ready, you can join now.
Try to reload page.
If you see this page after refresh,
it can mean misconfiguration on your side.
`) }