SnoopBind

sealed interface SnoopBind

Where SnoopWebServer listens.

Local is loopback only — reach it with adb forward or the iOS simulator. Lan and Host are reachable from other machines. Every mode is token-gated (loopback is shared with every other app on the device): a generated token unless you pass your own to SnoopWebServer.start.

Inheritors

Types

Link copied to clipboard
data class Host(val address: String) : SnoopBind

A specific bind address you choose (e.g. one interface's IP).

Link copied to clipboard
data object Lan : SnoopBind

Every interface (0.0.0.0), reachable across the LAN.

Link copied to clipboard
data object Local : SnoopBind

Loopback only (127.0.0.1).