dave08
03/30/2023, 7:17 AMserver()
function in suspendApp library, is there a way to add a connector { }
for an internal port?simon.vergauwen
03/30/2023, 7:27 AMembeddedServer
API from Ktor except as an extension on ResourceScope
.dave08
03/30/2023, 7:38 AMCoroutineScope.embeddedServer(
factory: ApplicationEngineFactory<TEngine, TConfiguration>,
vararg connectors: EngineConnectorConfig = arrayOf(EngineConnectorBuilder()),
watchPaths: List<String> = listOf(WORKING_DIRECTORY_PATH),
parentCoroutineContext: CoroutineContext = EmptyCoroutineContext,
configure: TConfiguration.() -> Unit = {},
module: Application.() -> Unit
): TEngine
and another one receives a applicationEngineEnvironment
... those can configure multiple connectors... but the one you wrap only provides one port.simon.vergauwen
03/30/2023, 7:39 AMdave08
03/30/2023, 7:40 AMsimon.vergauwen
03/30/2023, 7:43 AMdave08
03/30/2023, 7:44 AM