Socket
Book a DemoInstallSign in
Socket

vue3-laravel-echo

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

vue3-laravel-echo

Laravel Echo Vue 3

1.0.1
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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 vue3-laravel-echo

or via npm

npm install --save vue3-laravel-echo

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 "vue3-laravel-echo"

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')

Keywords

Laravel

FAQs

Package last updated on 24 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.