@malgo-fe/windmill-client
v1.2.3
Published
![windmill](assets/windmill.jpeg)
Downloads
1
Readme
windmill client
windmill
is simple service to notify all clients of an app some events, such as version upgrade.
This is the client package.
usage
use in vallina js
<script src="/path/to/windmill-client.bundle.js"></script>
<script>
const client = new WindmillClient({
url: 'http://localhost:3000',
app: 'mhra',
token: '123456',
onUpgrade: data => console.log('upgrade: ', data),
});
client.start();
</script>
with modules
import WindmillClient from 'windmill-client';
const client = new WindmillClient({
url: 'http://localhost:3000',
app: 'mhra',
token: '123456',
onUpgrade: data => console.log('upgrade: ', data),
});
client.start();