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

ORM events ? #4

Open
jaumard opened this issue Jun 28, 2016 · 3 comments
Open

ORM events ? #4

jaumard opened this issue Jun 28, 2016 · 3 comments

Comments

@jaumard
Copy link
Contributor

jaumard commented Jun 28, 2016

It will be nice to create a room for each models and have a created/updated/deleted event from the ORM.

In order to do this each trailpack-orm should fire an event orm-model-created orm-model-updated and orm-model-deleted on his lifecycle event and this trailpack have to listen for those events and send them to sockets rooms.

@konstantinzolotarev @tjwebb @wbprice @weyj4 any feedback on this ?

@jaumard jaumard changed the title ORM event ? ORM events ? Jun 28, 2016
@konstantinzolotarev
Copy link

@jaumard I agree with this approach but think that it should be optional. There should be option to disable it.

@jaumard
Copy link
Contributor Author

jaumard commented Jun 29, 2016

Of course :) we can add a boolean in config to plug trailpack-realtime to ORM events or not

@scott-wyatt
Copy link
Member

+1 for this functionality.

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

No branches or pull requests

3 participants