1.0.18 • Published 5 years ago

web-notify-client v1.0.18

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

PropertyDescription
urlIf specified, it will use it to connect to socket, if not, it will use same hostname
pathsocket connect path http://hostname/path
MethodsParametersDescription
addSocketurlpathcreate and instantiate a socket out of url and path
static getInstanceNoneReturns instance of WebNotify (only one copy is made)
broadcastroommessagebroadcast messages to message subscriber
joinRoomroomlistener=Nonejoin stream room and subscribe listener to channel
subscriberoomlistenersubscribe listener to channel

Message Listener

Interface for receiving stream/notifications.

MethodsParametersDescription
onReadMessagemessageMethod 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