Hello,

I use Drupalchat with the Nodejs polling methode and I have remarqued an issue.
Each message are written in the database which is useless in nodejs and can be a performance issues.

I have made a quick diff patch to resolve this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SocialNicheGuru’s picture

Status: Active » Needs review
SocialNicheGuru’s picture

if you did not write the message to the db, then how would nodejs know which message to send?

In function drupalchat_channel_add(),
the json data is defined in this way around line 695

'data' => drupal_json_encode($message),
SocialNicheGuru’s picture

Could the original patch get cleaned up to just include the needed portions?

SocialNicheGuru’s picture

Version: 7.x-1.4 » 7.x-2.5
FileSize
788 bytes

Re-roll against 2.5 with just relevant portion

SocialNicheGuru’s picture

Do we need to write users to the database if we do not need to write messages to the database with nodejs?

apaderno’s picture

Version: 7.x-2.5 » 7.x-2.x-dev