Add web client, update CLI client

This commit is contained in:
Maxwell Jeffress
2024-11-05 20:35:10 +11:00
parent 41c9e7f53f
commit a4b6721ebc
10 changed files with 312 additions and 3 deletions

View File

@@ -2,6 +2,8 @@ package xyz.maxwellj.chookpen.client
import okhttp3.*
import java.util.Scanner
import java.util.concurrent.TimeUnit
import kotlin.system.exitProcess
import java.io.File
@@ -52,7 +54,7 @@ fun main() {
}
val client = OkHttpClient.Builder()
//.pingInterval(30, TimeUnit.SECONDS)
.pingInterval(30, TimeUnit.SECONDS)
.build()
val request = Request.Builder()