Bel LaPointe 2024-12-14 19:30:59 -07:00
parent d5a290c60d
commit ab3856a40e
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ func isV1(r *http.Request) bool {
}
func isWS(r *http.Request) bool {
return r.URL.Path == "/ws"
return r.URL.Path == "/ws" || strings.HasPrefix(r.URL.Path, "/ws/")
}
func (s *S) serveStatic(w http.ResponseWriter, r *http.Request) error {
@ -137,7 +137,7 @@ func (s *S) serveWS(httpw http.ResponseWriter, httpr *http.Request) error {
return err
}
return nil
return fmt.Errorf("not impl")
}
func (s *S) serveV1(w http.ResponseWriter, r *http.Request) error {