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