Solution Of Socket IO Not Working in Production - ashish-greycube/help GitHub Wiki

When socketio is not working. Mostly node path is wrong

How to get node path ? Go to frappe folder and type

which node

ex

frappe@vmi1853423:~$ which node`
/home/frappe/.nvm/versions/node/v18.16.0/bin/node

Then open supervisor.conf

frappe@vmi1853423:~/frappe-bench$ nano config/supervisor.conf

inside supervisor.conf

[program:frappe-bench-node-socketio]
command=/usr/bin/node /home/frappe/frappe-bench/apps/frappe/socketio.js

change to

[program:frappe-bench-node-socketio]
command=/home/frappe/.nvm/versions/node/v18.16.0/bin/node /home/frappe/frappe-bench/apps/frappe/socketio.js

Ref : https://discuss.frappe.io/t/frappe-publish-realtime-or-currently-viewing-or-hot-reload-is-not-working-for-ssl-site/84429/12

⚠️ **GitHub.com Fallback** ⚠️