fix: call setAppReady() automatically in createFromNuxtConfig
This commit is contained in:
parent
34f9d8fd81
commit
cca10c6061
|
|
@ -127,6 +127,9 @@ export function createFromNuxtConfig(options: NuxtNetworkingOptions = {}): {
|
||||||
;(globalThis as any).ws = ws
|
;(globalThis as any).ws = ws
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In Nuxt, the plugin IS the init — unblock gated sends immediately
|
||||||
|
ws.setAppReady()
|
||||||
|
|
||||||
return { api, ws }
|
return { api, ws }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue