turnix_dart 0.1.7
turnix_dart: ^0.1.7 copied to clipboard
A Dart SDK for fetching WebRTC ICE (STUN/TURN) credentials from the Turnix.io API, with support for advanced options like regions, TTL, client IP, and per-call parameters.
Changelog #
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.1.7 - 2025-06-04 #
Added #
- Support for retrieving available TURN regions via
TurnixIO.getAvailableRegionsmethod, including theRegionmodel with a customtoStringmethod and example usage in README.
0.1.5 - 2025-05-20 #
Changed #
- Renamed
apiKeyparameter toapiTokenacross all methods and documentation for consistency across platforms and better clarity.
0.1.0 - 2025-05-19 #
Added #
-
Advanced Options: support for
initiatorClient,receiverClient,room,ttl,fixedRegion,preferredRegion, andclientIpparameters in fetch call. -
clientIp default: if unset, the server will use the requester's IP to determine region when neither
fixedRegionnorpreferredRegionis specified. -
Error semantics:
fixedRegionnow raises an error if allocation in the specified region is unavailable;preferredRegionfalls back to closest available. -
Dart extension: added
IceCredentialsXextension withtimeLeftandisExpiredconvenience getters. -
Example app update: UI now includes:
- “Refresh” button in the AppBar.
- Real-time countdown of credentials’ TTL.
ExpansionTilepanel for advanced options input.
-
README improvements: clarified installation, usage, and license sections; added badges and metadata.