Skip to content

Feat/new protocol frontend#9

Open
SpaceFox1 wants to merge 15 commits into
feat/new-protocolfrom
feat/new-protocol-frontend
Open

Feat/new protocol frontend#9
SpaceFox1 wants to merge 15 commits into
feat/new-protocolfrom
feat/new-protocol-frontend

Conversation

@SpaceFox1
Copy link
Copy Markdown
Owner

No description provided.

@SpaceFox1 SpaceFox1 requested a review from kitsuvm April 21, 2026 06:01
@SpaceFox1 SpaceFox1 self-assigned this Apr 21, 2026
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why an empty interface?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why not use {#await}?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

File is named WebRTCManager but the class inside it is named as WRTCManager, is a typo?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think is better to rename this file to follow PascalCase from WebRTCManager.

});
}

onMount(() => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Migrate from onMount and onDestroy to $effect with desconstructor.

import { ClientToServer, type ServerToClient } from "$lib/protos/streamer";
import type { Session } from "$lib/interfaces/session";

// svelte-ignore non_reactive_update
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is an anti-pattern.

break;
}
}
onMount(() => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Migrate to $effect.

Comment thread frontend/package.json
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "eslint .",
"proto": "protoc --proto_path=../protos --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./src/lib/protos ../protos/controller.proto ../protos/streamer.proto ../protos/viewer.proto"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Isn't better rename this to proto:build?

Comment thread frontend/svelte.config.js
},
kit: {
adapter: adapter(), prerender: {
handleHttpError: 'warn',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is this?

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