Skip to content

feat(devtools): add multi-spec support to useWebSocket composable#95

Merged
miguelramos merged 2 commits into
nextfrom
feature/vite-open-api-server-d6w.3-websocket-composable
Mar 9, 2026
Merged

feat(devtools): add multi-spec support to useWebSocket composable#95
miguelramos merged 2 commits into
nextfrom
feature/vite-open-api-server-d6w.3-websocket-composable

Conversation

@miguelramos
Copy link
Copy Markdown
Member

  • Update ConnectedEventData to include optional specs array
  • Add 'get:specs' to ClientCommandType union
  • Add SimulationConfig interface for set:simulation commands
  • Populate specs store from connected event (lazy Pinia access)
  • Request initial get:registry and get:timeline per-spec on connect
  • Add 10 typed command wrappers: getSpecs, getRegistry, getTimeline, clearTimeline, getStore, setStore, clearStore, setSimulation, clearSimulation, reseed — all accepting specId parameter
  • Extend UseWebSocketReturn interface with new command wrappers
  • Add Pinia setup (setActivePinia) to test beforeEach
  • Add 22 new tests covering: specs store population, initial data requests, all command wrappers, specId passthrough in events

Ref: vite-open-api-server-d6w.3

- Update ConnectedEventData to include optional specs array
- Add 'get:specs' to ClientCommandType union
- Add SimulationConfig interface for set:simulation commands
- Populate specs store from connected event (lazy Pinia access)
- Request initial get:registry and get:timeline per-spec on connect
- Add 10 typed command wrappers: getSpecs, getRegistry, getTimeline,
  clearTimeline, getStore, setStore, clearStore, setSimulation,
  clearSimulation, reseed — all accepting specId parameter
- Extend UseWebSocketReturn interface with new command wrappers
- Add Pinia setup (setActivePinia) to test beforeEach
- Add 22 new tests covering: specs store population, initial data
  requests, all command wrappers, specId passthrough in events

Ref: vite-open-api-server-d6w.3
@miguelramos miguelramos merged commit cbc5287 into next Mar 9, 2026
4 checks passed
@miguelramos miguelramos deleted the feature/vite-open-api-server-d6w.3-websocket-composable branch March 9, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ TYPE: Feature New feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant