0xgeert / flux-test

2 stars 0 forks source link

Model.message not received with sockets subscribing through `watch` #30

Closed 0xgeert closed 10 years ago

0xgeert commented 10 years ago

upstream: https://github.com/balderdashy/sails/issues/1813

0xgeert commented 10 years ago

Test if message indeed called by subscribnig to firehose: https://github.com/balderdashy/sails-docs/blob/master/reference/Sockets/sails.sockets.subscribeToFirehose.md

0xgeert commented 10 years ago

model.message is not for multiple models. Instead mode.publish would be what we want. Still, can't seem to be able to send message.. sucks.

0xgeert commented 10 years ago

For future ref: we needed to include todo as the eventName. So for instance:

   Todo.publish(todosUpdated,"todo","message", {
                data: todosUpdated,
                verb: "whatever"
            }, req);