api group: 'com.hiczp', name: 'space-engineers-remote-api', version: '0.1.3'
Http engine is optional, recommend CIO
api group: 'io.ktor', name: 'ktor-client-cio', version: ktorVersion
See all available engine here https://ktor.io/clients/http-client/engines.html
val spaceEngineersRemoteClient = SpaceEngineersRemoteClient(
"http://localhost:8080",
"BbDYO1rQObKCkCyh50Z2UQ==",
CIO
)
runBlocking {
spaceEngineersRemoteClient.server.ping().data.run(::println)
spaceEngineersRemoteClient.session.sendMessage("Testing 123")
}
spaceEngineersRemoteClient.close()
FYI https://www.spaceengineersgame.com/dedicated-servers.html
Apache 2.0