Fix native CLI TCP regression path

This commit is contained in:
sergeych committed 2026-04-09 11:00:23 +03:00
1 parent aa1b74620e
commit 402b8bb1b3
14 files changed
+204 -22

No files matched your search

@@ -13,6 +13,8 @@ import org.khronos.webgl.Uint8Array
actual fun getSystemNetEngine(): LyngNetEngine = jsNodeNetEngineOrNull ?: UnsupportedLyngNetEngine
actual fun shutdownSystemNetEngine() {}
private val jsNodeNetEngineOrNull: LyngNetEngine? by lazy {
if (!isNodeRuntime()) return@lazy null
val net = requireNodeModule("net") ?: return@lazy null