public class Connection extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getClientData()
Returns the data associated to the connection on the client-side.
|
String |
getConnectionId()
Returns the identifier of the connection.
|
List<Publisher> |
getPublishers()
Returns the list of Publisher objects this particular Connection is
publishing to the Session (each Publisher object has one Stream, uniquely
identified by its
streamId). |
OpenViduRole |
getRole()
Returns the role of the connection
|
String |
getServerData()
Returns the data associated to the connection on the server-side.
|
List<String> |
getSubscribers()
Returns the list of streams (their
streamId properties) this
particular Connection is subscribed to. |
String |
getToken()
Returns the token associated to the connection
|
public String getConnectionId()
Session.forceDisconnect(String) passing this
property as parameterpublic OpenViduRole getRole()
public String getToken()
public String getServerData()
TokenOptions.Builder.data(String)
when calling Session.generateToken()public String getClientData()
public List<Publisher> getPublishers()
streamId). You can call
Session.forceUnpublish(Publisher) passing any
of this values as parameterpublic List<String> getSubscribers()
streamId properties) this
particular Connection is subscribed to. Each one always corresponds to one
Publisher of some other Connection: each string of the returned list must be
equal to the returned value of some
Publisher.getStreamId()Copyright © 2018 OpenVidu. All rights reserved.