Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i want to source the activity-streams out from heartbeat to nodejs based on the hearbeat installation with integrated shoutbox and rules. however, when i switch off the polling on the stream, the new messages are anyways posted into the stream as they are worn out of the rule. how do i have to configure the whole thing so that it works with nodejs momentary directly in the drupal - installation (later on maybe outsourced) in real-time? can anyone help me?
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen Shot 2012-05-21 at 20.45.27.png | 32.24 KB | Stalski |
#3 | Screen Shot 2012-05-21 at 20.46.03.png | 77.38 KB | Stalski |
#3 | Screen Shot 2012-05-21 at 20.46.27.png | 56.3 KB | Stalski |
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedWell, this only works in the most basic approach for now. There is only the configuration when polling for newer messages ... a new setting is attached to set this to "nodejs". Ofcourse the nodejs module needs to be configured as well.
The permissions access checks do not work yet, so this string returning does not know if it CAN be shown.
Best not to use this feature yet if your activity is not public all the way. If not, you can use it.
I'll need to check this if it is broken with the new code of nodejs module.
Comment #2
dark_underground CreditAttribution: dark_underground commentedthanks for that quick reply, stalski!
could you please tell me how nodejs have to be configured and what a config on the localhoast has to look like?
is there a seperate nodejs-script needed on the server or is this already brought by drupal out of the box with the module nodejs?
is this feature polling over nodejs in the heartbeat stream settings only found in the newest version of heartbeat??
thanks a lot for your support.
Comment #3
Stalski CreditAttribution: Stalski commentedno extra js needed, just configuration of nodejs server after installing it ofcourse. (that was the most difficult part, but even that was pretty easy).
Every activity getting logged will trigger the after logging hook which heartbeat_nodejs implements and thus can "broadcast" the messages in the stream.
Success.
Comment #4
dark_underground CreditAttribution: dark_underground commentedthank you for supporting.
when would a version for a produktive system expectable?
Comment #5
VernitIt does not work, can you provide me more details configure about node.js server module.
User Activity load automatically after without page refresh.
Comment #6
sol0matrix80 CreditAttribution: sol0matrix80 commentedStalski congratulations on a great module i still haven't gotten this to work with nodejs sever should i run the config.js or the server.js on the actual nodejs server this is tricky for none devs to implement thanks for your great work a full step by step would help alot of new people like myself understand this implementation alot more so we could build on it
Thanks in advance omar
Comment #6.0
sol0matrix80 CreditAttribution: sol0matrix80 commentedupdate