laravel-echo-vue3

Laravel Echo Vue 3
4,551 2
Install
npm install laravel-echo-vue3
Latest Version:1.0.1
License:MIT
Last Updated:Sep 24, 2022
Links: GitHub  ·  npm
Maintainer: ferdiunal

Laravel Echo Vue

This package enables the Laravel Echo library to set the property for Vue 3. Laravel Echo setup is the same as in the document.

Install

via yarn

yarn add laravel-echo-vue3

or via npm

npm install --save laravel-echo-vue3

If you are going to use Pusher you need to install pusher-js

via npm

npm install --save pusher-js

or via yarn

yarn add pusher-js

Usage

### Initialize

import App from '@/App.vue'
import Pusher from 'pusher-js';
import LaravelEcho from "laravel-echo-vue3"

const app = createApp(App)


const options = {
    broadcaster: 'pusher',
    key: import.meta.env.VITE_PUSHER_APP_KEY,
    cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER,
    forceTLS: true
}

app.use(LaravelEchoVue, {
    ...options,
    client: new Pusher(options.key, options)
})

app.mount('#app')

Related Packages

@clalarco/vue3-plotly

Vue 3 component for plotly.js, with Typescript support

28,421
laravel-elixir-vue-2

'Laravel Elixir Vue 2.0 Integration'

28,012 107
vue-tilt.js

Add tilt-effect to your elements

22,943 52
laravel-mix-vue3

A Laravel Mix extension for Vue 3, Typescript and JSX.

5,680 24
bump-ui

Bump-UI for Vue 3+

713

Version History

Version Released License
1.0.1 MIT