This commit is contained in:
2025-12-24 06:20:11 +06:00
parent 8eef4fc477
commit bcd457e2d6
3 changed files with 8 additions and 8 deletions

View File

@@ -66,11 +66,11 @@ export const useSignaling = createSharedComposable(() => {
const uri = host ? `${protocol}//${host}` : ``
socket.value = io(`http://localhost:4000/webrtc`, {
path: `/chad/ws`,
transports: ['websocket'],
// socket.value = io(`${uri}/webrtc`, {
// path: `${pathname}/ws`,
// socket.value = io(`http://localhost:4000/webrtc`, {
// path: `/chad/ws`,
// transports: ['websocket'],
socket.value = io(`${uri}/webrtc`, {
path: `${pathname}/ws`,
withCredentials: true,
auth: {
userId: me.value.id,

View File

@@ -1,6 +1,6 @@
export default defineNuxtRouteMiddleware(async (to, from) => {
// if (import.meta.dev || import.meta.server)
// return
if (import.meta.dev || import.meta.server)
return
const { isTauri } = useApp()