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 have nodejs running, and can see it doing something when I send a System-wide Broadcast Notification
and when I change drupalchat to use Node.js , I cant see any users...
There any way someone could help me trouble shoot this..?
Thanks
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis is weird.
I can get drupalchat working with the ajax backend method, but not nodejs.
Nodejs is working for everything else.
Comment #2
Ddroid_za CreditAttribution: Ddroid_za commentedSame issue here, it seems this is only compatible with older versions of nodejs? 3 years ago, so not sure, trying to get this to work myself.
https://www.drupal.org/node/1546212#comment-7403944
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedIn addition nodejs 7.12 has been refactored.
Comment #4
Ddroid_za CreditAttribution: Ddroid_za commentedSo are we beating a dead horse here trying to get this to work with the latest versions of nodejs?
I am running:
Drupal nodejs: 7.x-1.12
Drupal Chat: 7.x-1.8
Nodjs: v4.3.1
nmp : 2.14.12
My nodeserver is running and logging correctly as far as i can see before I add the chat extension. I renamed my extension file to chat_nodejs.server.extension.js
When adding the extension I can see it gets loaded ie:
Extension loaded: /chat_nodejs.server.extension.js
Started http server.
But then also produces the following error:
[sitepath]/modules/contrib/nodejs/node_modules/drupal-node.js/lib/client-manager.js:797
if (this.sockets[sessionId]) {
^
TypeError: Cannot read property 'sockets' of undefined
My config file:
backendSettings = {
"scheme": "http",
"host": "localhost",
"port": 8888,
"key": "/path/to/key/file",
"cert": "/path/to/cert/file",
"resource": "/socket.io",
"publishUrl": "publish",
"serviceKey": "",
"backend": {
"port": 80,
"host": "localhost",
"messagePath": "/[sitename]/nodejs/message"
},
"clientsCanWriteToChannels": false,
"clientsCanWriteToClients": false,
"extensions": ["/chat_nodejs.server.extension.js"],
"debug": true,
"transports": ["websocket",
"polling"],
"jsMinification": true,
"jsEtag": true,
"logLevel": 1
};
Please note im just using [sitename] as a ref... I also tried adding the extension to the root of the app, and not in the extensions folder... same result.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI can confirm this error.
Comment #6
JayJay_seal CreditAttribution: JayJay_seal commentedI can confirm this too
Comment #7
shaktikI change drupalchat to use Node.js , I cant see any users...
Comment #8
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThere is a new rewrite of nodejs and drupalchat needs to be updated.
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commented