Skip to content

Commit

Permalink
Fix suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Feb 5, 2025
1 parent 9f0076a commit 20b3d39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/signaling/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func Handler(ctx context.Context, store stores.Store, cloudflare *cloudflare.Cre
logger := logging.GetLogger(ctx)
logger.Debug("upgrading connection")

ctx, cancel := context.WithCancel(ctx)
defer cancel()

acceptOptions := &websocket.AcceptOptions{
InsecureSkipVerify: true, // Allow any origin/game to connect.
CompressionMode: websocket.CompressionDisabled,
Expand Down

0 comments on commit 20b3d39

Please sign in to comment.