epilogue icon indicating copy to clipboard operation
epilogue copied to clipboard

socket.io integration

Open mark-lester opened this issue 8 years ago • 2 comments

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.

mark-lester avatar May 17 '16 23:05 mark-lester

@mark-lester do you have a question here?

mbroadst avatar May 18 '16 12:05 mbroadst

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

mark-lester avatar May 18 '16 13:05 mark-lester