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

chore: refactor custom protocol #26

Merged
merged 3 commits into from
May 31, 2022
Merged

Conversation

DeMoorJasper
Copy link
Member

@DeMoorJasper DeMoorJasper commented May 30, 2022

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code

Refactor iFrame protocol for the custom protocols, so we can reuse the same base protocol instead of reinventing the wheel again

Closes CSB-4520

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 30, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1cff9ef
Status: ✅  Deploy successful!
Preview URL: https://1ad528b9.sandpack-bundler.pages.dev

View logs

@linear
Copy link

linear bot commented May 30, 2022

CSB-4520 Make fs protocol use the same base iFrame protocol used by the bundler

Currently the fs protocol and the base iFrame protocol used by sandpack differ immensely, causing issues like not being able to show multiple sandboxes with the same parent window reliably.

@@ -6,15 +6,11 @@ import { Emitter } from '../utils/emitter';
* */
export class IFrameParentMessageBus {
private parentId: number | null = null;
private messageId = Date.now();
private messageId = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this value always be 0 or will it increase on every message?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will increase for every message

@DeMoorJasper DeMoorJasper merged commit 74326c4 into main May 31, 2022
@DeMoorJasper DeMoorJasper deleted the chore/refactor-protocol-requests branch May 31, 2022 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants