@innertia-solutions/innertia-nuxt 0.1.25 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ export function useRealtime() {
14
14
  pusherAppCluster,
15
15
  pusherWsHost,
16
16
  pusherWsPort,
17
+ pusherForceTLS, // false para Soketi/Reverb local sin TLS (ws). Default true.
17
18
  } = config.public
18
19
 
19
20
  const connect = async () => {
@@ -33,10 +34,12 @@ export function useRealtime() {
33
34
  const authHeaders = {}
34
35
  run(authHeaders)
35
36
 
37
+ const tls = pusherForceTLS !== false // default true; false = ws plano (local)
36
38
  const options = {
37
39
  cluster: pusherAppCluster || 'mt1',
38
- forceTLS: true,
39
- enabledTransports: ['ws', 'wss'],
40
+ forceTLS: tls,
41
+ enabledTransports: tls ? ['ws', 'wss'] : ['ws'],
42
+ disableStats: true,
40
43
  auth: {
41
44
  headers: authHeaders,
42
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/innertia-nuxt",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Innertia Solutions — Nuxt layer unificada: core, auth, multitenancy, theme y app contexts",
5
5
  "keywords": [
6
6
  "nuxt",