Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record WebSocket data for replay #448

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

Record WebSocket data for replay #448

wants to merge 25 commits into from

Conversation

tim-we
Copy link
Member

@tim-we tim-we commented Jun 23, 2023

Work in progress

The server will be able to record messages sent to a client and store them in a file. There should be a special server that can load this file and replay it/resend those messages to the client. This should help with debugging certain issues.

  • new maven dependency: Apache Commons CLI (commons-cli) for parsing command line options
  • new run configs:
    • Playback Mode: Start a special server that plays a recording. Will ask for a recording file on startup.
    • Run Dev Server: Run the default server with recording and assertions enabled.

TODO: Consider using client-side OPFS instead

@tim-we tim-we added enhancement New feature or request Server java Pull requests that update Java code labels Jun 23, 2023
@tim-we tim-we linked an issue Jun 23, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jul 23, 2023

Bundle Stats — Web client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
4 70.72 kB → 70.87 kB (+151 B) +0.21%
Changeset
File Δ Size
src/app/worker/worker.ts 📈 +197 B (+4.85%) 3.96 kB → 4.16 kB
src/app/worker/socket.ts 📈 +69 B (+3.97%) 1.7 kB → 1.76 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
worker.bundle.js 14.26 kB → 14.4 kB (+151 B) +1.03%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
main.bundle.js 50.1 kB 0%
app.css 6.04 kB 0%
index.html 328 B 0%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java Pull requests that update Java code Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replay buffer
1 participant