start and stop behaviour

This commit is contained in:
2026-06-23 10:23:14 +01:00
parent 1614675e9d
commit a28f996330
5 changed files with 26 additions and 10 deletions
+4
View File
@@ -160,6 +160,10 @@ func (i *IRacing) Stream() (<-chan telem.TelemetryData, error) {
return i.streamCh, nil
}
func (i *IRacing) StopStream() {
i.streamCancel()
}
func (i *IRacing) Subscribe(requestFields map[int16]telem.FieldID) {
i.logger.Debug(fmt.Sprintf("Len Req: %d\n", len(requestFields)))