live_reload_protocol library
The live-reload wire protocol: the define that opts an app in and the two VM Service extensions the in-app channel registers.
Flutter-free on purpose, so the host sswatch runner (ssgen_flutter), a
plain Dart program, speaks the same names as the channel in this package.
An app never needs it: package:ssplayer_flutter/ssplayer_flutter.dart
exports the define.
Constants
- ssLiveReloadDefine → const String
-
The
--dart-definekey that opts an app into SpriteStudio.ssablive-reload.sswatch --runinjects=true; the in-app channel (SsDevChannel) comes up only in a debug build that carries it, so a plainflutter rundoes normal Dart hot reload without touching the art. Shared bysswatch(the injector) and the channel (the reader) so the key can't drift. - ssReloadExtensionMethod → const String
-
The
dart:developerservice-extension method the in-app dev push channel (SsDevChannel) registers and the hostsswatchrunner calls over the VM Service to hot-swap a pack. Shared here — a plain-Dart const with no imports — so the Flutter-freesswatchand the Flutter-side channel can't drift. Must start withext.(the VM Service requires it for custom extensions). - ssTargetsExtensionMethod → const String
-
The service-extension the host runner calls to enumerate the app's live
reload targets — each enabled target's
{assetDir, pack}.sswatch --deviceuses it to push a byte blob for only the pack currently shown (an embedded.ssabis large, so pushing every pack would be wasteful). Shared so the Flutter-freesswatchand the channel can't drift.