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

Add NewSession event #7

Closed
OverloadUT opened this issue Jun 28, 2015 · 2 comments
Closed

Add NewSession event #7

OverloadUT opened this issue Jun 28, 2015 · 2 comments

Comments

@OverloadUT
Copy link
Contributor

There is a handy parameter in an Alexa request, session.new, that tells the app that this request represents a brand new session.

I would like to be able to register an event handler for when a new session is started to do certain session setup tasks. Right now the only way to do this would be to check that parameter in every intent handler plus the launch handler and call the same function in each case.

@matt-kruse
Copy link
Collaborator

With the pre() method in version 2.1 coming soon, it will be easy to do "new session" kind of functionality. I think this is an okay fix for this request, unless you think a dedicated newSession() method would be more useful.

@OverloadUT
Copy link
Contributor Author

Nah, after you proposed the pre() hook, I realized that this functionality could just go in there when a developer needs it.

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

No branches or pull requests

2 participants