Meteor-EventDDP icon indicating copy to clipboard operation
Meteor-EventDDP copied to clipboard

matchEmit doesn't work and check() errors

Open stormbkk87 opened this issue 10 years ago • 2 comments

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');

stormbkk87 avatar Mar 09 '16 09:03 stormbkk87

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.

boxxa avatar Mar 16 '16 16:03 boxxa

No I didn't. I switched to the Streamy package.

stormbkk87 avatar Mar 22 '16 04:03 stormbkk87