OpenTok.Connection

public class Connection : IDisposable

The Session.Connection property is set to a Connection object that represents the local user's connection. The Stream.Connection property is set to a Connection object that represents the stream publisher's connection. To initialize a session, construct a Session.Builder and call the Build() method,

which returns the Session object. Then call the Session.Connect(string) method to connect to the session. When the connection to the session is made, the Session object sends the Session.Connected event.

When streams connect to a session, the Session object sends the Session.StreamReceived event. Compare the connection property of a Stream object with the connection property of the Session object to determine if a stream is published by your client or another.

Properties

Name Type Description
Id string { get; } The unique ID for this connection.
Data string { get; } A string containing metadata describing the connection. You can add this connection data when you create a token.
CreationTime DateTime { get; } Returns the time at which the connection was created on the OpenTok server.

Methods

Name Description
Dispose(disposing)
Dispose() Disposes of the Connection object's resources.
Equals(obj) → {override bool}
GetHashCode() → {override int}

Dispose(disposing)

Parameters:
Name Type Description
disposing bool

Dispose()

Disposes of the Connection object's resources.

Equals(obj) → {override bool}

Parameters:
Name Type Description
obj object
Returns:

GetHashCode() → {override int}

Returns: