Closed averri closed 4 years ago
I can not reproduce this in the feathers-chat putting the initialization after app.configure(configuration());
:
app.configure(configuration());
app.configure(sync({
uri: 'redis://localhost:6379'
}));
And adding
app.service('messages').publish('created', data => app.channel('authenticated'));
To the configuration.
Thanks for looking into that, @daffl.
I have managed to make the configuration to work. I have removed other components, hooks, simplified a lot until got it working. Some other component was interfering with the functionality.
I'll close it as it's not easily reproducible.
Steps to reproduce
Create a standard Feathers application using feathers-sync.
The following code snippet is where the problem occurs. There are no issues without using feathers-sync.
Expected behavior
It should be possible to use the method
publish
to publish events to specific channels.Actual behavior
The application throws an exeption:
The feathers-sync has been configured according to the documentation:
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version: 12.13.0
Operating System: Linux Ubuntu 18.04
Browser Version: Chrome
React Native Version: N/A
Module Loader: require