multimirror-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i multimirror-js

Weekly Downloads

904

Version

1.0.1

License

ISC

Unpacked Size

52.8 kB

Total Files

43

Last publish

Collaborators

  • albatarnik