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.
When I use the nodejs_get_content_channel_users function of the nodejs.module, the function returns FALSE and writes a message on the drupal reports with the following text:
Error calling getContentTokenChannelUsers() for channel "", error: TypeError: Cannot read property 'sockets' of undefined
I checked the getContentTokenChannelUsers function and I saw the tokenChannels array does not have the any channels.
Comment | File | Size | Author |
---|---|---|---|
#1 | fixing-getContentTokenChannelUsers-2147801.patch | 844 bytes | altfuns |
Comments
Comment #1
altfuns CreditAttribution: altfuns commentedThe file fixing-getContentTokenChannelUsers-2147801.patch solve the issue using another approch for getting the users uids and the authtokens of the channel. The new approch use the authenticatedClients array to get the auth tokens and the user identifiers.
Comment #2
altfuns CreditAttribution: altfuns commented