Skip to content

Commit

Permalink
fix: don't panic when encountering web transports
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Jan 5, 2024
1 parent d7c816a commit 64421ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httpconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package signalr
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -127,6 +128,7 @@ func NewHTTPConnection(ctx context.Context, address string, options ...func(*htt
switch {
case negotiateResponse.hasTransport("WebTransports"):
// TODO
return nil, errors.New("support for WebTransports not implemented yet")

case httpConn.hasTransport(TransportWebSockets) && negotiateResponse.hasTransport(TransportWebSockets):
wsURL := reqURL
Expand Down

0 comments on commit 64421ca

Please sign in to comment.