You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/cmd/listen.go
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,10 @@ import (
28
28
)
29
29
30
30
typelistenCmdstruct {
31
-
cmd*cobra.Command
32
-
noWSSbool
33
-
pathstring
31
+
cmd*cobra.Command
32
+
noWSSbool
33
+
pathstring
34
+
maxConnectionsint
34
35
}
35
36
36
37
// Map --cli-path to --path
@@ -95,6 +96,7 @@ Destination CLI path will be "/". To set the CLI path, use the "--path" flag.`,
95
96
lc.cmd.Flags().MarkHidden("no-wss")
96
97
97
98
lc.cmd.Flags().StringVar(&lc.path, "path", "", "Sets the path to which events are forwarded e.g., /webhooks or /api/stripe")
99
+
lc.cmd.Flags().IntVar(&lc.maxConnections, "max-connections", 50, "Maximum concurrent connections to local endpoint (default: 50, increase for high-volume testing)")
0 commit comments