chore: remove comments

This commit is contained in:
2025-10-30 12:21:29 +01:00
committed by GitHub
parent ffbbf1f94f
commit 63d23210b8

View File

@@ -1,15 +1,9 @@
export const useWebSocketUrl = () => {
// Detect environment based on hostname
// In production (helium.srizan.dev), use wss://
// In development (localhost), use ws://
if (import.meta.client) {
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
const host = window.location.host
return `${protocol}//${host}/ws/signaling`
}
// Server-side: This shouldn't be used since WebSocket connections are client-only
// But we provide a sensible default for SSR hydration
const config = useRuntimeConfig()
const isDev = process.dev