ryancp / sailng

Sails.js + Angular = Awesome
MIT License
163 stars 38 forks source link

Sails 0.10 Model.subscribe deprecated #2

Closed rjmoggach closed 10 years ago

rjmoggach commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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.

fabdrol commented 10 years ago

@ryancp that link leads to an empty page..

JanisGruzis commented 9 years ago

Yes. Link broken.