Skip to main content

omni_adapter 0.1.0 copy "omni_adapter: ^0.1.0" to clipboard
omni_adapter: ^0.1.0 copied to clipboard

Join a Connect Omni stage from Dart or Flutter and exchange real-time messages with prototypes.

Changelog — omni_adapter (Dart / Flutter) #

All notable changes to the Dart adapter. Versioning follows SemVer; release tags use the dart-v* prefix (independent of the other language packages). The minimum Connect server per feature is listed in docs/COMPATIBILITY.md, which ships in the npm (@studioxid/omni-adapter) and NuGet (StudioXid.OmniAdapter) packages.

0.1.0 - 2026-11-16 #

  • Removed: EnsuredStreamLayer.nameConflict, the deprecated alias of renamed. Read renamed, which carries the same value.
  • Changed: the doc comments of the experimental entry points (startScreenBroadcast, onSignaling · sendSignaling · onRemoteInputHolder, EngineTransport) now open with "Experimental: this API may change in a minor release before 1.0.", so IDE hovers show what docs/COMPATIBILITY.md marks 🧪. Documentation only; no behaviour change.
  • Changed: the registry page's homepage link now opens the Connect Omni documentation, and it no longer links to the adapter's source repository or issue tracker, which outside users could not open.

0.1.0-beta.2 - 2026-11-02 #

  • Changed: the ICE-server list is fetched again once half of the lifetime it had when fetched has passed (at the latest a minute before it expires), instead of only a minute before expiry. A screen-broadcast connection answered just before that refresh used to lose its relay when the credential expired a minute later. The credential a new connection opens with now has at least a quarter of its lifetime left — usually more than half, because Connect servers hand senders a new credential shortly before half-life. Connections still drop when their credential expires. Servers that send expiresAt with a STUN-only answer are asked again at half that re-check time.

  • Added: when the server sends stage:ice-changed — it revoked this participant's TURN credential, or paused or resumed TURN issuance (Connect servers from 2026-10-31) — the cached ICE-server list is dropped and the next answer fetches a fresh one. Connections already up are left alone; older servers never send it. Web viewers on those servers also replace a relayed connection with a new receiver before its credential expires, which reaches the adapter as a new viewer session.

  • Documentation: the README no longer links to the adapter's source repository, which is not public yet; it points to files that ship in the packages instead.

  • Added: EngineTransport declares the channels the page sends (sends:) and exposes the Connect Omni Web View layer's per-direction rules as allowedReceives / allowedSends. allowedChannels is now their union and deprecated.

  • Changed: the doctor's screen check and the docs follow Connect Omni's Web View layer, which replaced Adapter View; only an Adapter Stream layer picks adapters by providesView.

0.1.0-beta.1 - 2026-10-30 #

Removed #

  • The nodeType connect option (also on MemoryStage) and Member.nodeType are removed. The adapter no longer declares a node type; Backstage shows every adapter with the same node look.

0.1.0-beta.0 - 2026-10-29 #

First public release of the Dart adapter for Connect Omni stages, for Dart and Flutter — including Flutter web — as a beta. A caret constraint on 0.1.0 (^0.1.0) does not match a prerelease, so depend on ^0.1.0-beta.0 (what dart pub add omni_adapter writes); the API may still change before 0.1.0.

Highlights #

  • connect() joins a stage with a cst_… adapter token (or a bare ck_… key plus url and stageId) and returns a client that sends, receives, acks and reconnects on its own.
  • Sending: send() / sendJson() with optional server acks, an ordered offline queue, a per-connection rate limiter matched to the server's 60 messages a second, and throttle().
  • Receiving: per-channel and wildcard subscriptions, latest() / history(), the members() roster with presence events, and listeners(channel).
  • Declarations (receives · sends · nodeType) make the adapter a node in Backstage; strictRouting delivers only what it declared, and exclusiveName keeps one active instance per name with automatic standby.
  • Session resume (autoRejoin, on by default) waits through a stage that closes and reopens and gives up only on failures that waiting cannot fix.
  • Diagnostics: a bounded diagnostics() ring with an onLog sink, runDoctor(), ping() latency statistics and buildReport() repro bundles — none of them ever record a credential.
  • Testing without a server or hardware: MemoryStage, replay() and simulate().
  • Experimental: the Engine profile for Flutter web (EngineTransport, no credential and no seat), raw stage:signaling, the screen-broadcast helper (startScreenBroadcast, media injected by the app, e.g. flutter_webrtc) and remote input.

License #

  • Apache License 2.0 (LICENSE, NOTICE). Connecting to a stage still requires a Connect Omni subscription (an adapter token).

Requirements #

  • Dart 3.4 or later. Platforms: Android, iOS, Linux, macOS, web and Windows — the package never imports dart:io, so it builds for the web.
  • Runtime dependencies: socket_io_client, http and web_socket.
  • Flutter apps need network access (Android INTERNET and a cleartext configuration for plain http:// servers, the macOS sandbox network-client entitlement).

Server requirements #

  • Joining, sending, receiving, acks, history, the roster and reconnects work on any Connect Omni server.
  • ck_ adapter keys, declarations, strictRouting, exclusiveName, providesView, screen broadcast, remote input and the Engine profile need an adapter-enabled server (or web build). Older servers strip the declarations without an error. The minimum server per feature is in docs/COMPATIBILITY.md (shipped in the npm and NuGet packages).

Known limitations #

  • Soft real-time: a few milliseconds on a LAN, hundreds over a WAN. Not a control bus.
  • A live session must exist; an adapter starts one only with a key created with "Let adapters start a session". Each connection uses one guest seat.
  • History is a replay ring (1000 messages by default) that re-seeds state on rejoin but never re-fires handlers. Trigger channels are at-most-once across a disconnect.
  • Values are primitives (structured data as JSON strings); binary payloads are not supported.
  • A source faster than 60 messages a second loses its oldest queued values; close() drops queued fire-and-forget sends.
  • No terminal CLI; runDoctor() offers the same checks as a library call.
0
likes
160
points
1.06k
downloads

Documentation

API reference

Publisher

verified publisherstudioxid.com

Weekly Downloads

Join a Connect Omni stage from Dart or Flutter and exchange real-time messages with prototypes.

Homepage

Topics

#protopie #connect-omni #realtime #socket-io #prototyping

License

Apache-2.0 (license)

Dependencies

http, socket_io_client, web_socket

More

Packages that depend on omni_adapter