Skip to content

add pipeline struct to replace ProcessingConfig and WindowingConfig#85

Open
itang06 wants to merge 4 commits intofeature/pipeline-structfrom
feature/pipeline/backend
Open

add pipeline struct to replace ProcessingConfig and WindowingConfig#85
itang06 wants to merge 4 commits intofeature/pipeline-structfrom
feature/pipeline/backend

Conversation

@itang06
Copy link
Copy Markdown

@itang06 itang06 commented Apr 4, 2026

What?

combined ProcessingConfig and WindowingConfig structs into a single Pipeline struct that the frontend sends as one JSON message at the start of a WebSocket session


How?

  • Created pipeline.rs in shared-logic with a Pipeline struct containing a Vec<Node>, where Node is an enum with Window, Preprocessing, and ML variants, with each carrying their own config struct
  • Removed ProcessingConfig and WindowingConfig from lsl.rs and replaced references throughout lsl.rs, bc.rs, and websocket-server/main.rs with the new Pipeline type
  • Simplified handle_connection in main.rs to loop until the first non null text message (pipeline JSON) instead of the previous 500ms timeout phase that waited for two separate config messages
  • Changed session_id to String in WebSocketInitMessage to match the frontend's type

Testing

  • cargo check passes w/o errors
  • Connected to ws://localhost:8080 via Postman and sent the pipeline JSON, and Docker logs confirmed Received pipeline with 3 nodes and EEG data packets streamed back successfully
postmanws

postman message

logs1

docker logs

---

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

❌ PR approval conditions NOT satisfied. At least 1 team lead OR 2 team members must approve before merging.
[Last checked: 2026-04-04T20:12:15.350Z]

@itang06 itang06 changed the base branch from main to feature/pipeline-struct April 6, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant