dchester / epilogue

Create flexible REST endpoints and controllers from Sequelize models in your Express app
846 stars 116 forks source link

socket.io integration #166

Open mark-lester opened 8 years ago

mark-lester commented 8 years ago

I am playing about getting my client models and collections to be reactive and have realised that they need to listen to a subject from sockets.io identical to the url e.g. a model is at /Model Name/id and a collection at /parent model/parent id/model so just send messages on those subjects and thus simplify the backbone model to be able to use the same thing (minus any query parameters). the message transmission is done via a sequelize hook, but it's seeming logical that the application of that hook to the respective model should move to the REST generator, where it can decide what the url===message subject should be.

mbroadst commented 8 years ago

@mark-lester do you have a question here?

mark-lester commented 8 years ago

Should socket.io support be integrated into the REST generator.