https://github.com/rohan-deshpande/laravel-echo-umd
laravel/echo as a umd package
https://github.com/rohan-deshpande/laravel-echo-umd
es5 javascript laravel laravel-echo umd
Last synced: 2 months ago
JSON representation
laravel/echo as a umd package
- Host: GitHub
- URL: https://github.com/rohan-deshpande/laravel-echo-umd
- Owner: rohan-deshpande
- License: mit
- Created: 2018-08-05T01:14:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-05T01:32:33.000Z (almost 7 years ago)
- Last Synced: 2025-03-15T23:36:29.089Z (3 months ago)
- Topics: es5, javascript, laravel, laravel-echo, umd
- Language: JavaScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Echo UMD
Laravel Echo as a UMD package. Needed this for use in an ES5 project.
## Installing
```
npm i --save laravel-echo-umd
```
## UsageInclude the `node_modules/laravel-echo-umd/dist/echo.js` file in your app however you want, and `Echo` will be available globally.
You can use it like
```javascript
window.echo = new Echo(config);// later on...
echo
.channel('orders')
.listen('OrderShipped', function (e) {
console.log(e.order.name);
});
```