public KSPWebSocketService(IKSPAPI kspAPI, Servers.AsynchronousServer.ClientConnection clientConnection, IterationToEvent<UpdateTimerEventArgs> gameLoopEvent) : this(kspAPI, gameLoopEvent) { this.clientConnection = clientConnection; streamTimer.Interval = streamRate; streamTimer.Elapsed += streamData; streamTimer.Enabled = true; }
public KSPWebSocketService(IKSPAPI kspAPI, IterationToEvent<UpdateTimerEventArgs> gameLoopEvent) { this.kspAPI = kspAPI; this.gameLoopEvent = gameLoopEvent; gameLoopEvent.Iterated += streamTimer.update; }