pui9-websockets-next

2.0.1-SNAPSHOT.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-next

Weekly Downloads

69

Version

2.0.1-SNAPSHOT.0

License

Copyright

Unpacked Size

297 kB

Total Files

13

Last publish

Collaborators

  • prodevelop