angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

how to emit a socket event after updating a document? #2784

Open jitesh121 opened 5 years ago

jitesh121 commented 5 years ago
Item Version
generator-angular-fullstack x.x.x
Node x.x.x
npm x.x.x
Operating System OS X 10 / Windows 10 / Ubuntu 15.10 / etc
etc etc
Item Answer
Transpiler Babel / TypeScript
Markup HTML / Pug
CSS CSS / LESS / SCSS / Stylus
Router ngRoute / ui-router
Client Tests Jasmine / Mocha
DB MongoDB / SQL
Auth Y / N
etc etc
lilian131 commented 4 years ago

hi @jitesh121 did you figure out ?

jitesh121 commented 4 years ago

yes , i figured it out @lilian131

lilian131 commented 4 years ago

Yes me too it does'nt send the event if we use findoneandupdate or updateone or .... it works if after findoneandupdate i use item.save again