2017 © Pedro Peláez
 

library zf-hermes

Interactive Solutions extension for Node Hermes

image

interactive-solutions/zf-hermes

Interactive Solutions extension for Node Hermes

  • Saturday, March 26, 2016
  • by mac_nibblet
  • Repository
  • 3 Watchers
  • 0 Stars
  • 147 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

zf-hermes

Zend Framework module to work with Node-Hermes., (*1)

Configuration

Copy the hermes.global.php.dist to change the default Redis configuration. Default values are:, (*2)

  • host = 'localhost'
  • port = 6379

Usage

Just inject the NotifierService and use publish to send a message over Redis., (*3)

// $this->notifierService is an injected NotifierService
$this->notifierService->publish($message);

$message must be an object implementing the MessageInterface., (*4)

The message interface consists of the following properties: - channel Redis channel to publish to message onto - userId Id of the user that triggered the Redis event - timeStamp The timestamp of when the message was created - payload Additional data to be sent, (*5)

The notifier service sends a json encoded message consisting of the properties userId, timeStamp and payload onto Redis channel channel., (*6)

Note that the channel property is not part of the message., (*7)

Recommendations

It is recommended to use listeners to listen for events that should generate a Redis message. Although it is possible to inject the notifier service directly into another class., (*8)

The Versions

26/03 2016

dev-master

9999999-dev

Interactive Solutions extension for Node Hermes

  Sources   Download

The Requires

 

The Development Requires

by Erik Norgren

26/03 2016

0.0.1

0.0.1.0

Interactive Solutions extension for Node Hermes

  Sources   Download

The Requires

 

The Development Requires

by Erik Norgren