multimirror-js
v1.0.1
Published
Multimirror Echo Solution for real time communication.
Downloads
3,904
Maintainers
Readme
Multimirror Js
This library represents a custom connector to socket-io
Usage
1st: Use multimirror connector in your bootstrap.js
import Echo from "laravel-echo"
window.io = require('socket.io-client')
import Multimirror from 'multimirror-js';
window.Echo = new Echo({
broadcaster: Multimirror,
host: 'http://socket.kamal.guru'
});
window.Echo.private('test-channel')
.listen('TestEvent', (e) => {
console.log('private-channel', e)
})