Skip to content

Commit

Permalink
fixup! KTOR-6004 Support TCP and Unix socket for wasm-js and js via N…
Browse files Browse the repository at this point in the history
…odeJS (#4411)
  • Loading branch information
osipxd committed Jan 8, 2025
1 parent 4188d2a commit 7a3736b
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.sockets.tests

import io.ktor.network.selector.*
import io.ktor.test.dispatcher.*
import io.ktor.utils.io.core.*
import kotlinx.coroutines.*
import kotlinx.coroutines.test.*
import kotlinx.io.files.*
import kotlin.time.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.test.TestResult
import kotlinx.io.files.Path
import kotlinx.io.files.SystemFileSystem
import kotlinx.io.files.SystemTemporaryDirectory
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes
import kotlin.uuid.*
import kotlin.uuid.ExperimentalUuidApi
import kotlin.uuid.Uuid

internal fun testSockets(
timeout: Duration = 1.minutes,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/*
* Copyright 2014-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.selector

import io.ktor.network.util.*

public actual interface Selectable

internal actual fun Any.supportsUnixDomainSockets(): Boolean = isAFUnixSupported
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.sockets.tests

internal actual fun Any.supportsUnixDomainSockets(): Boolean = false

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.sockets.tests
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/

package io.ktor.network.sockets.tests

import io.ktor.network.util.*

internal actual fun Any.supportsUnixDomainSockets(): Boolean = isAFUnixSupported

0 comments on commit 7a3736b

Please sign in to comment.