juho-jaakkola / elgg-pusher
Push data from server to clients on an Elgg site.
Installs: 27
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 7
Type:elgg-plugin
Requires
- cboden/ratchet: 0.3.*
- react/zmq: 0.2.*|0.3.*
This package is not auto-updated.
Last update: 2024-11-01 22:39:47 UTC
README
Plugin that enables real-time communications, such as instant notifications and real-time chats, for the social networking engine Elgg.
Actual user-facing features are not included in this plugin. Additional plugins need to be installed in order to make use of the communication features.
Prerequisites
- ZeroMQ library for your server
- PHP bindings for the ZeroMQ library
You may need to tunnel the traffic through a proxy e.g. in order to encrypt it. You can use software such as stunnel to achieve this.
Installation
- Place the plugin (it must be named
pusher
) in Elgg'smod/
directory - Enable the plugin form Elgg admin panel
- Enter plugin settings
- Flush Elgg caches
- Start the push server. E.g.
php -f /var/www/elgg/mod/pusher/push-server.php
- Verify that logged in users receive real-time updates from plugins that have support for the push server
- Stop and install the push server as a service (TODO)
Notes
push-server.php
may run with different PHP settings. Make sure your Elgg settings.php
file specifies the default timezone, and that Elgg does not emit warnings, notices, errors,
or fatal exceptions on start up.
If using PHP installed via Homebrew for Mac, you may need to install ZeroMQ and the PHP module from source:
brew install php56-zmq --universal --build-from-source