On my /admin/reports/dblog , I'm able to get real-time updates on the Recent log messages.
When I do a System-wide Broadcast, I'm not able to get the real-time notification.

Could it be that I am having the wrong versions of NPMs? If not, how can I debug this?

request@2.9.100 ./node_modules/request 
connect@1.8.5 ./node_modules/connect 
├── qs@0.4.1
├── mime@1.2.4
└── formidable@1.0.8
express@2.5.6 ./node_modules/express 
├── qs@0.4.1
├── mkdirp@0.0.7
└── mime@1.2.4
socket.io@0.8.7 ./node_modules/socket.io 
├── policyfile@0.0.4
├── redis@0.6.7
└── socket.io-client@0.8.7

Comments

logii’s picture

Status: Active » Closed (works as designed)

I kinda "fixed" the problem after switching to node v0.4.6
Had NVM to help me do that: https://github.com/creationix/nvm

revnoah’s picture

I'm working through the same thing. Were you able to resolve it?

mkadin’s picture

Status: Closed (works as designed) » Active

I'm going to open this back up.

I can confirm the same issue, message broadcast doesn't work with node version 0.8.16, but the watchdog stuff does work.

To give some more information, there's no visible errors with debug on. The console just doesn't include anything about the broadcast message. It lists also of the session authentication stuff for the page reload, but there's nothing about the broadcast.

I installed nvm, compiled the latest 0.4 and 0.6 versions. The server ran into an error with 0.4, and the same behavior was visible with 0.6. If I can provide any futher debug information please let me know.

I think this is an important bug to fix because the docs suggest using the broadcast as a way to test if your configuration is properly set.

mkadin’s picture

Status: Active » Closed (works as designed)

After messing with all this for a while, I was able to solve the problem with the solution from #1615362: "Node.js server configuration builder" produces faulty pubilshUrl setting.

If you used the config builder to make your nodejs.config.js file, it may need adjustment.

sarikak’s picture

Issue summary: View changes

I am also facing the same issue with drupal7 nodejs integration.

I have tried to implement the notifications using nodejs referring the Node.js integration documentation from drupal.org/node/1713530 But I couldn't find the notification popup on submitting the System-wide Broadcast Notification example from the link admin/config/nodejs/nodejs_notify/broadcast.

glekli’s picture

That documentation has since been updated. Could you please take a look and see if it resolves your issue?

If that does not help, check if you see any javascript error on the page on which you are expecting the notification. Note that nodejs needs to be loaded on that page (check the configuration to make sure).