Meteor-EventDDP
Meteor-EventDDP copied to clipboard
matchEmit doesn't work and check() errors
compile fails with check() error inside server publish method. matchEmit always fails. Syntax is incorrect for minimongo match in Readme.
Should be:
ddpEvents.matchEmit('push', {
$and: [
{ userId: ['fsDFf7fsfdfs'] },
{ appId: '2222' },
{ foo: 'bar' }
]
}, 'Hello');
A push call to a simple selector does not work.
ddpEvents.matchEmit('push', {
userId: 'fsDFf7fsfdfs'
}, 'Hello');
Did you ever find a work around? I can see the userID in the log when the user connects but trying to matchEmit to it doesn't work.
No I didn't. I switched to the Streamy package.