Node JS Chat Drupal (No active sessions for uid: 1)
DanielDanielDaniel
- webhosting
Guten Tag !
Ich habe es endlich hingekriegt, dass Node JS neben Apache auf meinem Webserver läuft, jedoch habe ich immer noch Konfigurationsprobleme ?
Wenn ich in Drupal das Chat Modul, welches für NodeJS geschrieben ist aktiviere, erhalte ich die Fehlermeldung "Could not create Channel".
Der NodeJS server gibt mir im debug modus aus:
[CODE]Successfully added channel 'Chat__node_1'
setContentToken: message { token: 'ABfSaj9iB7rY7efYEPOp4v1CddJtTCE_uVnoTRUiKiA',
channel: 'Chat__node_1',
notifyOnDisconnect: true }
setContentToken ABfSaj9iB7rY7efYEPOp4v1CddJtTCE_uVnoTRUiKiA for channel Chat__node_1
publishMessageToContentChannel: message { broadcast: false,
channel: 'Chat__node_1',
callback: 'nodejsChatUserOnlineHandler',
data:
{ chatroom: 'Chat__node_1',
name: 'citycamcheck',
subject: 'New user connected',
body: 'User citycamcheck has entered the chat',
user: { uid: '1', name: 'citycamcheck', picture: '0' } },
clientSocketId: '' }
getNodejsSessionIdsFromUid { uid: '1', sessionIds: [] }
No active sessions for uid: 1
[/CODE]
Meine nodejs.config.js ist:
[CODE]/**
* This configuration file was built using the 'Node.js server configuration builder'.
* For a more fully commented example see the file nodejs.config.js.example in the root of this module
*/
backendSettings = {
"scheme":"http",
"host":"localhost",
"port":8080,
"key":"/path/to/key/file",
"cert":"/path/to/cert/file",
"resource":"/socket.io",
"publishUrl":"publish",
"serviceKey":"",
"backend":{
"port":80,
"host":"localhost",
"messagePath":"/nodejs/message"},
"clientsCanWriteToChannels":true,
"clientsCanWriteToClients":true,
"extensions":["nodejs_chat.module.js"],
"debug":true,
"transports":["websocket",
"flashsocket",
"htmlfile",
"xhr-polling",
"jsonp-polling"],
"jsMinification":true,
"jsEtag":true,
"logLevel":1};[/CODE]
Was NodeJS angeht bin ich absoluter Beginner, also weiß ich nicht wo ich anfangen soll den Fehler zu suchen.
MfG
Daniel