рабочий вариант, но скороть 10 МБит
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
func main() {
|
||||
var (
|
||||
gatewayURL = flag.String("gateway-url", "ws://127.0.0.1:8080/api/v1/gateway/ws", "websocket gateway url")
|
||||
gatewayURL = flag.String("gateway-url", "", "websocket gateway url")
|
||||
attachToken = flag.String("attach-token", "", "short-lived attach token")
|
||||
duration = flag.Duration("duration", 90*time.Second, "maximum time to keep the client attached")
|
||||
heartbeatInterval = flag.Duration("heartbeat-interval", 10*time.Second, "client heartbeat interval")
|
||||
@@ -27,6 +27,9 @@ func main() {
|
||||
if *attachToken == "" {
|
||||
log.Fatal("attach-token is required")
|
||||
}
|
||||
if strings.TrimSpace(*gatewayURL) == "" {
|
||||
log.Fatal("gateway-url is required")
|
||||
}
|
||||
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||||
defer cancel()
|
||||
|
||||
Reference in New Issue
Block a user