I need to run drupalchat with nodejs locally but I get error loading the socket.io.js client library (404 not found)

nodejs server is running

the file exist in that path :


the request:


noddejs config:settings = { scheme: 'http', port: 8282, host: 'localhost', resource: '/socket.io', serviceKey: '', backend: { port: 82, host: 'localhost', scheme: 'http', basePath: 'localhost/drupal', messagePath: '/nodejs/message' }, debug: false, sslKeyPath: '', sslCertPath: '', sslCAPath: '', baseAuthPath: '/nodejs/', publishUrl: 'publish', kickUserUrl: 'user/kick/:uid', logoutUserUrl: 'user/logout/:authtoken', addUserToChannelUrl: 'user/channel/add/:channel/:uid', removeUserFromChannelUrl: 'user/channel/remove/:channel/:uid', addChannelUrl: 'channel/add/:channel', removeChannelUrl: 'channel/remove/:channel', setUserPresenceListUrl: 'user/presence-list/:uid/:uidList', addAuthTokenToChannelUrl: 'authtoken/channel/add/:channel/:uid', removeAuthTokenFromChannelUrl: 'authtoken/channel/remove/:channel/:uid', toggleDebugUrl: 'debug/toggle', contentTokenUrl: 'content/token', publishMessageToContentChannelUrl: 'content/token/message', extensions: [], clientsCanWriteToChannels: false, clientsCanWriteToClients: false, transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling'], jsMinification: true, jsEtag: true, logLevel: 1 }; what is wrong/missing config/permissions to run them together?

thanks in advance

  • The URL's wrong (the port should be after the domain, e.g. localhost:8080/...), and your node server is listening on 8282
    – Clive
    Jun 3, 2015 at 16:31
  • changing port didn't matter Jun 3, 2015 at 17:00
  • 1
    can you test with another module that uses nodejs to see if it's your nodejs or not. From talking to the people at iflychat they said that the nodejs feature is not production ready. It mentions on the drupal page "(currently under development)". Idk why they would have it there if it's not working.
    – No Sssweat
    Jun 3, 2015 at 17:16
  • 1
    I tried using it with my nodejs, but when I switch the option to use nodejs, the chat goes offline. When I try typing on it, I get this error on my terminal "publishMessageToChannel: The channel "drupalchat_c-0" doesn't exist. " Seems to me that the nodejs feature is not ready for use at all.
    – No Sssweat
    Jun 3, 2015 at 17:52

1 Answer 1


I have created simple module to Integrate nodejs and build chat server for drupal users d7 nodejs chat

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.