TxServerConfiguration class
Configuration for Telnyx server connections including host, port, and ICE servers.
This class provides factory methods to create production or development server configurations with appropriate TURN/STUN server settings.
Constructors
- TxServerConfiguration({String host = DefaultConfig.telnyxProdHostAddress, int port = DefaultConfig.telnyxPort, String turn = DefaultConfig.defaultTurn, String stun = DefaultConfig.defaultStun})
-
Creates a server configuration with the specified parameters.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
The host address for the WebSocket connection.
final
- port → int
-
The port for the WebSocket connection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socketUrl → String
-
Returns the full WebSocket URL for this configuration.
no setter
- stun → String
-
The STUN server URL for ICE candidates.
final
- turn → String
-
The TURN server URL for ICE candidates.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
development(
) → TxServerConfiguration - Creates a development server configuration with default development values.
-
production(
) → TxServerConfiguration - Creates a production server configuration with default production values.