Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sails 0.10 Model.subscribe deprecated #2

Closed
rjmoggach opened this issue Feb 27, 2014 · 4 comments
Closed

Sails 0.10 Model.subscribe deprecated #2

rjmoggach opened this issue Feb 27, 2014 · 4 comments

Comments

@rjmoggach
Copy link

Heads up...

debug: Deprecated:   `Model.subscribe(socket, null, ...)`
debug: See http://links.sailsjs.org/docs/config/pubsub
debug: (⌘ + double-click to open link from terminal)
debug: Please use instance rooms instead (or raw sails.sockets.*() methods.)
@ryancp
Copy link
Owner

ryancp commented Feb 28, 2014

Yep, I noticed there is a new way to subscribe to model changes: http://beta.sailsjs.org/#!documentation/reference/ModelMethods/.subscribe.html
I will replace the deprecated code with the 0.10 version.

Thanks mogga.

@ryancp
Copy link
Owner

ryancp commented Mar 10, 2014

Deprecated warning now no longer shows after switching to Model.watch(): http://beta.sailsjs.org/#!documentation/reference/ModelMethods/.watch.html to listen for the publishCreate event of a new Message.

@ryancp ryancp closed this as completed Mar 10, 2014
@fabdrol
Copy link

fabdrol commented Jul 14, 2014

@ryancp that link leads to an empty page..

@JanisGruzis
Copy link

Yes. Link broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants