{{ props.error }}
24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/app/layouts/docs.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 |69 | {{ headline }} 70 |
71 |81 | {{ description }} 82 |
83 |
101 |
102 |
--------------------------------------------------------------------------------
/src/runtime/factories/echo.ts:
--------------------------------------------------------------------------------
1 | import type { ConsolaInstance } from 'consola'
2 | import Echo from 'laravel-echo'
3 | import type { BroadcastDriver, EchoOptions } from 'laravel-echo'
4 | import type { Channel, ChannelAuthorizationCallback, Options } from 'pusher-js'
5 | import type { ChannelAuthorizationData } from 'pusher-js/types/src/core/auth/options'
6 | import type { Authentication, ModuleOptions } from '../types/options'
7 | import { createFetchClient } from './http'
8 | import { createError } from '#app'
9 | import type { NuxtApp } from '#app'
10 |
11 | /**
12 | * Creates an authorizer function for the Echo instance.
13 | * @param app The Nuxt application instance
14 | * @param authentication The authentication options
15 | * @param logger The logger instance
16 | */
17 | function createAuthorizer(
18 | app: NuxtApp,
19 | authentication: Required