1.0.18 • Published 7 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
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago