err on err
parent
ceff02789a
commit
62df483665
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -76,6 +77,7 @@ func (s *S) serveWS(w http.ResponseWriter, r *http.Request) error {
|
||||||
msg["page"] = "B"
|
msg["page"] = "B"
|
||||||
if gameState.Completed.IsZero() {
|
if gameState.Completed.IsZero() {
|
||||||
msg["event"] = "A"
|
msg["event"] = "A"
|
||||||
|
return io.EOF
|
||||||
} else {
|
} else {
|
||||||
msg["event"] = "B"
|
msg["event"] = "B"
|
||||||
items := []map[string]any{}
|
items := []map[string]any{}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue