mirror of
https://github.com/SrIzan10/helium.git
synced 2026-06-06 00:56:58 +00:00
chore: remove comments
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user