func (f Flags) socketRunnerConfig(timeFunc func() int64) socket.RunnerConfig {
	socketCfg := socket.Config{
		Debug:          f.DebugGame,
		TimeFunc:       timeFunc,
		ReadWait:       60 * time.Second,
		WriteWait:      10 * time.Second,
		PingPeriod:     15 * time.Second,
		HTTPPingPeriod: 10 * time.Minute,
	}
	cfg := socket.RunnerConfig{
		Debug:            f.DebugGame,
		MaxSockets:       32,
		MaxPlayerSockets: 5,
		SocketConfig:     socketCfg,
	}
	return cfg
}
// socketRunnerConfig creates the configuration for creating new sockets (each tab that is connected to the lobby).
socketRunnerConfig creates the configuration for creating new sockets (each tab that is connected to the lobby).
// socketRunnerConfig creates the configuration for creating new sockets ( each tab that is connected to the lobby ) .
func (f Flags) socketRunnerConfig(timeFunc func() int64) socket.RunnerConfig {
	socketCfg := socket.Config{
		Debug:          f.DebugGame,
		TimeFunc:       timeFunc,
		ReadWait:       60 * time.Second,
		WriteWait:      10 * time.Second,
		PingPeriod:     15 * time.Second,
		HTTPPingPeriod: 10 * time.Minute,
	}
	cfg := socket.RunnerConfig{
		Debug:            f.DebugGame,
		MaxSockets:       32,
		MaxPlayerSockets: 5,
		SocketConfig:     socketCfg,
	}
	return cfg
}
func ( f Flags ) socketRunnerConfig ( timeFunc func ( ) int64 ) socket . RunnerConfig { socketCfg := socket . Config { Debug : f . DebugGame , TimeFunc : timeFunc , ReadWait : 60 * time . Second , WriteWait : 10 * time . Second , PingPeriod : 15 * time . Second , HTTPPingPeriod : 10 * time . Minute , } cfg := socket . RunnerConfig { Debug : f . DebugGame , MaxSockets : 32 , MaxPlayerSockets : 5 , SocketConfig : socketCfg , } return cfg }
socketRunnerConfig creates the configuration for creating new sockets (each tab that is connected to the lobby).
socketRunnerConfig creates the configuration for creating new sockets ( each tab that is connected to the lobby ) .