I have successfully configured nodejs and drupalchat to play nice together and private chatting is working perfectly, however the public chatroom does not seem to work with the drupalchat nodejs backend. The public chat room is not visible to some users... On the users that do see it (seems to be random), when I submit a message to the chatroom I see in the nodejs server log:
publishMessageToChannel: The channel "drupalchat_c-0" doesn't exist.

Comments

Drupa1ish’s picture

+1

Aonoa’s picture

Version: 7.x-1.0-beta14 » 7.x-1.0-beta23

I have the same issue. Please correct this behaviour. :-)

Best regards.

El Turco’s picture

same over here

Aonoa’s picture

Version: 7.x-1.0-beta23 » 7.x-1.0-beta25
Issue summary: View changes

Using drupalchat 7.x-1.0-beta25 and the october 31st dev-build of nodejs integration still does not function with the public chatroom. The public chatroom disappears from the chat window the instant I change Drupalchat's settings to use nodejs instead of ajax polling. Changing back to ajax polling and the Public chatroom magically appears again.

I don't get much output in the console, but here:

Extension loaded: drupalchat_nodejs.server.extension.js
Started http server.
   info  - socket.io started
publishMessageToChannel: An invalid message object was provided.
Msg - undefined
Auth - 1
Added - 1
Out - 1
Auth - 1
Added - 1
Out - 1

This has been non-working, and a missing feature for quite some time now. I hope it will be attended to.

Thank you.

Dave Cohen’s picture

Version: 7.x-1.0-beta25 » 7.x-1.x-dev

I believe it creates a channel "drupalchat_0", then later sends messages to "drupalchat_c-0".

There's a similar problem with anonymous users. I get errors like the following in the log.

Added channels for uid 0: drupalchat_0
...
publishMessageToChannel: The channel "drupalchat_c-0" doesn't exist.
...
publishMessageToChannel: The channel "drupalchat_0-1000119" doesn't exist.
...
publishMessageToChannel: The channel "drupalchat_0-52da21addb31d9edf44b1cd04fd26e1b" doesn't exist.