How to delete/disconnect user from room

Thank you. That is what i was looking for. So far i came to know that the username is the unique way to identify the user connected in room and not the token. Client side is responsible for connecting token with username. Also once you call the N.API.deleteUser this deletes the user and token ? Right ? I need to regenrate token for authentication. Client can not use the same token. Am i right ? Please correct me.________________________________
From: Ignacio Aguadomailto:nachoaguadoc@gmail.com
Sent: ‎11/‎17/‎2015 5:16 PM
To: lynckiamailto:lynckia@googlegroups.com
Cc: azadsagar@hotmail.commailto:azadsagar@hotmail.com
Subject: Re: [lynckia] how to delete/disconnect user from room

In case you want to do it from the server side, you can call the function
N.API.deleteUser(room, user, callback, callbackError)

On Monday, November 16, 2015 at 8:56:48 PM UTC+1, Sagar Barai wrote:

anyone please ? i am new to licode. i am following tutors from this page
Redirecting…
N.API.createToken(roomId, name, role, function(token) {
console.log('Token created: ', token);
}, errorCallback);

the above function creates token for authentication. how do i delete token
? If this feature is not implemented in licode please let me know.


Sagar


From: azad...@hotmail.com <javascript:>
To: lyn...@googlegroups.com <javascript:>
Subject: [lynckia] how to delete/disconnect user from room
Date: Tue, 10 Nov 2015 20:45:42 +0530

Hi,
How do i delete user token (disconnect a user from room). Also i would
like know where can i find list of all server side API functions.
Thank you :slight_smile:


Sagar


You received this message because you are subscribed to the Google Groups
“lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lynckia+u...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups “lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lynckia+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Sagar,

You can disconnect an user from the room using the function described in
the Client API
room.disconnect() Redirecting…
Once you’re connected to the room you don’t have to worry about the token
anymore.

Best regards

NachoOn Monday, November 16, 2015 at 8:56:48 PM UTC+1, Sagar Barai wrote:

anyone please ? i am new to licode. i am following tutors from this page
Redirecting…
N.API.createToken(roomId, name, role, function(token) {
console.log('Token created: ', token);
}, errorCallback);

the above function creates token for authentication. how do i delete token
? If this feature is not implemented in licode please let me know.


Sagar


From: azad...@hotmail.com <javascript:>
To: lyn...@googlegroups.com <javascript:>
Subject: [lynckia] how to delete/disconnect user from room
Date: Tue, 10 Nov 2015 20:45:42 +0530

Hi,
How do i delete user token (disconnect a user from room). Also i would
like know where can i find list of all server side API functions.
Thank you :slight_smile:


Sagar


You received this message because you are subscribed to the Google Groups
“lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lynckia+u...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.

Exactly, in case you need to create a new connection you have to generate a
new token, you can’t use the old one again.On Wednesday, November 18, 2015 at 3:51:43 PM UTC+1, Sagar Barai wrote:

Thank you. That is what i was looking for. So far i came to know that the
username is the unique way to identify the user connected in room and not
the token. Client side is responsible for connecting token with username.
Also once you call the N.API.deleteUser this deletes the user and token ?
Right ? I need to regenrate token for authentication. Client can not use
the same token. Am i right ? Please correct me.

From: Ignacio Aguado <javascript:>
Sent: ‎11/‎17/‎2015 5:16 PM
To: lynckia <javascript:>
Cc: azad...@hotmail.com <javascript:>
Subject: Re: [lynckia] how to delete/disconnect user from room

In case you want to do it from the server side, you can call the function
N.API.deleteUser(room, user, callback, callbackError)

On Monday, November 16, 2015 at 8:56:48 PM UTC+1, Sagar Barai wrote:

anyone please ? i am new to licode. i am following tutors from this page
Redirecting…
N.API.createToken(roomId, name, role, function(token) {
console.log('Token created: ', token);
}, errorCallback);

the above function creates token for authentication. how do i delete token
? If this feature is not implemented in licode please let me know.


Sagar


From: azad...@hotmail.com
To: lyn...@googlegroups.com
Subject: [lynckia] how to delete/disconnect user from room
Date: Tue, 10 Nov 2015 20:45:42 +0530

Hi,
How do i delete user token (disconnect a user from room). Also i would
like know where can i find list of all server side API functions.
Thank you :slight_smile:


Sagar


You received this message because you are subscribed to the Google Groups
“lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lynckia+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lynckia+u...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.

In case you want to do it from the server side, you can call the function
N.API.deleteUser(room, user, callback, callbackError)On Monday, November 16, 2015 at 8:56:48 PM UTC+1, Sagar Barai wrote:

anyone please ? i am new to licode. i am following tutors from this page
Redirecting…
N.API.createToken(roomId, name, role, function(token) {
console.log('Token created: ', token);
}, errorCallback);

the above function creates token for authentication. how do i delete token
? If this feature is not implemented in licode please let me know.


Sagar


From: azad...@hotmail.com <javascript:>
To: lyn...@googlegroups.com <javascript:>
Subject: [lynckia] how to delete/disconnect user from room
Date: Tue, 10 Nov 2015 20:45:42 +0530

Hi,
How do i delete user token (disconnect a user from room). Also i would
like know where can i find list of all server side API functions.
Thank you :slight_smile:


Sagar


You received this message because you are subscribed to the Google Groups
“lynckia” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lynckia+u...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.

anyone please ? i am new to licode. i am following tutors from this page http://lynckia.com/licode/server-api.html#tokensN.API.createToken(roomId, name, role, function(token) { console.log('Token created: ', token);}, errorCallback);
the above function creates token for authentication. how do i delete token ? If this feature is not implemented in licode please let me know.–
Sagar

From: azadsagar@hotmail.com
To: lynckia@googlegroups.com
Subject: [lynckia] how to delete/disconnect user from room
Date: Tue, 10 Nov 2015 20:45:42 +0530

Hi,How do i delete user token (disconnect a user from room). Also i would like know where can i find list of all server side API functions.Thank you :slight_smile:

Sagar

You received this message because you are subscribed to the Google Groups “lynckia” group.

To unsubscribe from this group and stop receiving emails from it, send an email to lynckia+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi,How do i delete user token (disconnect a user from room). Also i would like know where can i find list of all server side API functions.Thank you :-)–
Sagar