Director class Null safety
Simplify API calls to find the best server and region to publish and subscribe to.
For security reasosn all calls will return a JWT token from authentication including the required socket path to connect with. You will need your own Publishing token and Stream name, please refer to Managing Your Tokens.
Constructors
- Director()
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Static Methods
-
getEndpoint(
) → String - Get current Director API endpoint where requests will be sent. [...]
-
getLiveDomain(
) → String - Get current Websocket Live domain. [...]
-
getPublisher(
DirectorPublisherOptions options) → Future< MillicastDirectorResponse> - Get publisher connection data. [...]
-
getSubscriber(
DirectorSubscriberOptions options) → Future< MillicastDirectorResponse> - Get subscriber connection data. [...]
-
parseIncomingDirectorResponse(
MillicastDirectorResponse directorResponse) → MillicastDirectorResponse - Modifies domain of subscriber/publisher Director reponses with liveWebSocketDomain value. [...]
-
setEndpoint(
String url) → void - Set Director API endpoint where requests will be sent. [...]
-
setLiveDomain(
String domain) → void - Set Websocket Live domain from Director API response. [...]