Make ws ping interval configurable

This commit is contained in:
Jannis Mattheis
2020-08-01 15:35:29 +02:00
parent 909eeff406
commit de226ce0cf
3 changed files with 4 additions and 2 deletions

View File

@@ -31,7 +31,8 @@ type Configuration struct {
}
ResponseHeaders map[string]string
Stream struct {
AllowedOrigins []string
PingPeriodSeconds int `default:"45"`
AllowedOrigins []string
}
Cors struct {
AllowOrigins []string