INNER CODE UNIT · Go
StopTimeout
resgateio/resgate · main.go:21
StopTimeout = 10 * time.Second
// DefaultNatsURL is the default NATS server to connect to.
DefaultNatsURL = "nats://127.0.0.1:4222"
// DefaultRequestTimeout is the timeout duration for NATS requests in milliseconds.
DefaultRequestTimeout = 3000
)
var usageStr = `
Usage: resgate [options]
Server Options:
-n, --nats <url> NATS Server URL (default: nats://127.0.0.1:4222)
-i --addr <host> Bind to HOST address (default: 0.0.0.0)
-p, --port <port> HTTP port for client connections (default: 8080)
-w, --wspath <path> WebSocket path for clients (default: /)
-a, --apipath <path> Web resource path for clients (default: /api/)