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

Skype LogOut Option #71

Open
Akshansh93 opened this issue Feb 14, 2018 · 3 comments
Open

Skype LogOut Option #71

Akshansh93 opened this issue Feb 14, 2018 · 3 comments

Comments

@Akshansh93
Copy link
Contributor

Is there a way to logout the skype account?

I mean something like this:

var skyweb_1 = require("skyweb");
var skyweb = new skyweb_1.default();
skyweb.login(username, password).then(function (skypeAccount) {
    console.log('Skyweb is initialized now');
    ....
});

skyweb.logout(parameter 1, parameter 2, ...).then(function (result){......});
@ShyykoSerhiy
Copy link
Owner

no, didn't seen the need of it.

@Akshansh93
Copy link
Contributor Author

I have a node server (main.js) , which uses the skyweb file (demo1.js). When the user pings the url hosted on main.js, it will open a skype login session using demo1.js and start the conversation.
But if the same user, ping the url again, it is creating a new skype login session and then what ever the user input, it is going twice (1 for new skype.login and 1 for the old one).
So, i feel there is a need for logout option, that can be used to close the old skype session.

@demurgos
Copy link
Contributor

demurgos commented Feb 16, 2018

Implement idempotency tokens in your main server and keep track of the open Skype sessions.
Log out is a feature that would be nice to support, it would force the endpoint to be closed immediately (instead of relying on timeout) but I'm not sure opening and closing sessions as you plan is the best solution for your use case.

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

3 participants