@sphinx-software/laravel-antenna
v1.0.2
Published
The Antenna transport that using built on top of Laravel Echo
Downloads
13
Readme
@sphinx-software/laravel-antenna
The Antenna transport that built on top of Laravel Echo
Install
npm install --save @sphinx-software/laravel-antenna
Usage
import { echo } from '@sphinx-software/laravel-antenna'
import { AntennaProvider } from '@sphinx-software/antenna'
import Echo from 'laravel-echo'
const transport = echo({
echo: new Echo({
// ... your Laravel echo config here
}),
events: [
// List of your events
]
})
const App = () => {
return (
<AntennaProvider transport={transport}>
{/* Your app code here */}
</AntennaProvider>
)
}
License
MIT © monkey-programmer