The server needs to approve the publication requested by the client. The docs talk about additional service filters doing this, however they don't have much info available.
@marshall is likely the go-to person for this.
Idea #1:
// In addition to
serverPublications(app, commonPublications, ['messages', 'channels']);
// allow the signature
serverPublications(app, commonPublications, { messages: fcn1, channels: fcn2 });
The fcn* would be called when a publication is requested by the client. Its param would be derived from the options object in
clientPublications.addPublication(feathersClient, 'messages', {
module: commonPublications,
name: 'query',
params: { username },
});
Any additional props in there would also be passed to fcn*