1.0.18 • Published 6 years ago
web-notify-client v1.0.18
Web Notify Client for Rest2CMD Stream and Portal-Pushify
React Front End Socket.IO modules to use for Rest2CMD and Portal-Pushify applications.
Installation
npm install --save web-notify-clientComponents
- WebNotify - Base module to create and open socket connection. (singleton)
- MessagesSubscriber - Listener Subscriber, push all messages to room.
- MessageListener - End client interface to listen to all messages pushed from server to subscriber.
WebNotify
| Property | Description |
|---|---|
| url | If specified, it will use it to connect to socket, if not, it will use same hostname |
| path | socket connect path http://hostname/path |
| Methods | Parameters | Description |
|---|---|---|
| addSocket | urlpath | create and instantiate a socket out of url and path |
| static getInstance | None | Returns instance of WebNotify (only one copy is made) |
| broadcast | roommessage | broadcast messages to message subscriber |
| joinRoom | roomlistener=None | join stream room and subscribe listener to channel |
| subscribe | roomlistener | subscribe listener to channel |
Message Listener
Interface for receiving stream/notifications.
| Methods | Parameters | Description |
|---|---|---|
| onReadMessage | message | Method invoked when message is received. Needs unique implementation. |
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago