The Session object dispatches SessionConnectEvent object when a session has successfully connected in response to a call to the
connect() method of the Session object.
For an example, see Session.connect().
The SessionConnectEvent object has the following properties:
connections (Array[Connection]) An array of Connection objects, representing connections to the session. (Note that each connection can publish multiple streams.)
target (Object) The object that dispatched the event.
type (String) The type of event. There is only one type of SessionConnectEvent object:
streams (Array[Stream]) An array of Stream objects corresponding to the streams currently available in the session that has connected.
Was this page helpful? Yes No