Download the PHP package zvse/private_message_messenger_nodejs without Composer

On this page you can find all versions of the php package zvse/private_message_messenger_nodejs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package private_message_messenger_nodejs

Fork info

Pure fork of the https://github.com/jez500/Private-Message-NodeJS with the package name change

Private Message NodeJS

Instant updates and notifications for the Private Message Messenger module module without the need for polling.

This listens for private message thread updates and uses the drupal nodejs module to trigger updates to the UI and provide notifications for members of the changed thread.

NOTE: This is different to the Private message nodejs module.
This module was written to be paired with Private Message Messenger and and they both work well together.

How it normally works

Polling is the standard method of checking for message updates, this means a website will hit your server every XX seconds to see if anything has changed. This is not ideal as it puts lots of extra load on your server with all those requests, it also means a user will have to wait XX seconds for a reply. If polling is disabled, it would require a full page reload!

Why this is a huge improvement

Requirements

Not a requirement, but this module has been specifically made to work with Private Message Messenger, if you are not using this, you will have to implement your own integration (see below for hooking into a notification).

Hooking into a notification

This module triggers an event on $(window) so all you have to do is listen to window for the event. Eg:

Installation

Just type

composer require zvse/private_message_nodejs

And... drush en -y private_message_nodejs

2. Ensure you have NodeJS setup and working

See basic guide here. Steps I took at time of writing:

NOTE 1: At time of writing this, the "stable" release of drupal/nodejs (v1.1) was actually quite broken, the 1.x-dev version is far more robust.

NOTE 2: For https support with drupal/nodejs you will likely need this patch.

3. Notifications - Optional, but handy for testing

Enable the nodejs_notify module, open a few browser windows and go to /admin/config/nodejs/broadcast in one of them to send a message to all the others. If that works, this module should be ready to go!

The nodejs_notify module also provides jGrowl which is used for notifications in this module. If you don't want nodejs_notify enabled but still want notifications then include jGrowl manually

4. Disable polling

You don't need it anymore, set the Ajax refresh rate for messenger blocks and config to 0 so it wont poll anymore.

5. Test

If you are using Private Message Messenger, Open 2 different browsers, each logged in as different users, send a message from one user to another, you should see threads and blocks instantly update and a notification displayed.

Author

This module is created by Jeremy Graham but wouldn't be possible without all the great work done by Jaypan on the Private Message module


All versions of private_message_messenger_nodejs with dependencies

PHP Build Version
Package Version
Requires drupal/private_message Version *
drupal/nodejs Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zvse/private_message_messenger_nodejs contains the following files

Loading the files please wait ....