pui9-websockets

1.18.0 • Public • Published

PUI9 Web Sockets Component Library

This library provides the PUI9 Web Sockets component to connect/disconnect from backend.

Installation

npm install pui9-websockets

Then import and register as Vue property:

import Pui9WebSockets from 'pui9-websockets';
...
Object.defineProperty(Vue.prototype, '$puiWebSockets', { value: Pui9WebSockets });

Finally, it can be used:

this.$puiWebSockets.connect()
this.$puiWebSockets.disconnect()
this.$puiWebSockets.send(message)

Readme

Keywords

none

Package Sidebar

Install

npm i pui9-websockets

Weekly Downloads

1,905

Version

1.18.0

License

Copyright

Unpacked Size

1.78 MB

Total Files

12

Last publish

Collaborators

  • prodevelop